| egrep -is -f ${FILTERDIR}/whitelist
formail hands me the full address in the To: or From: or Whatever: field
The approach is fraught with several problems, and must be approached
with caution. One problem is that you will undermatch. For example,
without word boundaries, my own address in the whitelist -- dman --
would match against variants such as friedman, haldman, feldman, etc., etc.
If you are going to use grep, I'd recommend grep or fgrep, not egrep,
to eliminate regexes where they can only be trouble. ("ne.com" becomes
"netcom", etc.) I'd also use the -x option or at least -w to my grep.
And you probably want the -e flag, because some things you capture
and feed to grep will cause problems otherwise.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail