procmail
[Top] [All Lists]

Re: would this be a valid recipe?

2002-10-11 15:36:41
On Fri, Oct 11, 2002 at 05:58:42PM -0400 or thereabouts, 
dman(_at_)nomotek(_dot_)com wrote:
 
I am trying to bit bucket a few addresses, and was wondering if this 
work.

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

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

It should work if you fix the syntax on your condition line.

      * $ ^From:.*($junk)


Without the asterisk, you have a recipe with no conditions, that
saves all mail that hits it to a file called "^From:.*($junk)"
(and "$junk" should be expanded).

Without the $ there in the condition line, $junk won't
expand.  This is peculiar to condition lines.  See the
man pages for the actual description of what goes on
with the $.
 
Thanks so very much.  Makes perfect sense now.  I appreciate your input. 

-- 
Best regards,
Gary   

_______________________________________________
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>