On 30 Nov 2004 Ruud H.G. van Tol (rvtol(_at_)isolution(_dot_)nl) wrote:
:0:
* ^From:.*\/[a-z0-9_(_dot_)+-]+(_at_)[a-z0-9_(_dot_)-]+
* ? grep -iw "$MATCH" $WHITELIST
$WHITE
Number 5:
I seldom use grep, but I think that the -w is strange.
Shouldn't that be an -F?
Suppose bart(_at_)example(_dot_)com is in your whitelist, and the
mail is from other(_dot_)bart(_at_)example(_dot_)com
Another option, which is what I use, is this:
:0:
* ? formail -rtzxTo: | fgrep -i -q -f $PMDIR/greenlist
$WHITE
I've been avoiding posting this because I'm not sure it is the
best way to do it so if anyone has any suggestions about the
optimal way to do this, please post and then I'll write about it
on one my pages and we can be done with this constantly recurring
thread!
Thanks,
NM
PS - and of course I'll give credit to the people who help
optimize this recipe!
--
Infinite Ink: <http://www.ii.com/>
Reverse Spam Filtering: <http://www.ii.com/internet/messaging/spam/>
Procmail Quick Start: <http://www.ii.com/internet/robots/procmail/qs/>
All About Pine: <http://www.ii.com/internet/messaging/pine/>
____________________________________________________________
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