procmail
[Top] [All Lists]

Reverting back to a simple blacklist

2004-11-05 11:48:50
I figured I would create a script to read from my blacklist mail folder
and get the 'From:' email addresses and move them to my
/home/user/.killfile.  So now I need to get my old blacklist working
again.  I've tried the following but too much mail goes to the trash
that shouldn't.  I am glad I have it going to trash instead of /dev/null
but how do I get this to only put in the trash those emails that have a
From: header or Reply-To: header that matches whats in the $BLACKLIST ? 
I had 'Reply-To:' in the recipe also but took it out.

BLACKLIST=$HOME/.killfile
:0
*$ ? test -s $BLACKLIST
* ? (formail -x From: | fgrep -iqf $BLACKLIST)
trash

and 

BLACKLIST=$HOME/.killfile
:0
*$ ? test -s $BLACKLIST
* ? (formail -x From: -x Received: | fgrep -iqf $BLACKLIST)
trash




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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