procmail
[Top] [All Lists]

Re: would this be a valid recipe?

2002-10-11 15:23:53
From: Gary <gary-list-procmail(_at_)mygirlfriday(_dot_)info>

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 $.

-- 
dman

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