* LuKreme <kremels(_at_)kreme(_dot_)com> :
:0 h
CLEANFROM=|formail -IReply-To: -rtzxTo:
WHITELIST=$HOME/.aliases
:0
* * $ ? formail -IReply-To: -rtzxTo: | egrep -w \"$CLEANFROM\"
white
might work.
Thought I would post this solution from William Park in
comp.mail.misc :
:0
* ^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+
* ? grep -i "$MATCH" ~/.aliases
white
Seems simple. I actually had something more complicated like :
WHITELIST=$HOME/.aliases
CLEAN_FROM=`formail -x "From:" -x "From" -x "Sender:" | sed -e
"s/^.*[^A-Za-z0-9_.+-]\([A-Za-z0-9_(_dot_)+-]*(_at_)\)/\1/" -e
"s/\(@[A-Za-z0-9_.+-]*\)[^A-Za-z0-9_.+-].*$/\1/"`
:0:
* ^TO_(troy)@(piggo.com)
* ? cat $WHITELIST | fgrep -i -is $CLEAN_FROM
white
This also worked, but not as elegant.
--
T R O Y P I G G I N S
e : troy(_at_)piggo(_dot_)com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail