procmail
[Top] [All Lists]

Re: would this be a valid recipe?

2002-10-11 15:17:40
At 15:37 2002-10-11 -0500, Gary wrote:
I am trying to bit bucket a few addresses, and was wondering if this
work.

Hit my disclaimer and follow the link to info about the "sandbox" testing method. With it, you can do a LOT of what-if scenarios easily.

junk="dumb(_at_)one\(_dot_)uk|dumb2(_at_)idiot\(_dot_)com|bad(_at_)spammer\(_dot_)com"

:0
^From:.*($junk)
/dev/null

THIS definatley won't work as written: the condition line isn't prefixed with an '*' Also, you want a '$' flag so that the variable is properly expanded for the regexp, thus:

:0
* $ ^From:.*($junk)
/dev/null

Try it in a sandbox.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>