On Fri, 4 Apr 2003, Dallman Ross wrote:
DR>
DR> Just put whatever strings you want to match in the file, one per
DR> line; then use the -x flag to fgrep. You will want the -z flag for
DR> formail, also. I don't think you need the parentheses.
DR>
DR> * ? formail -x From: -x Sender: -x Resent-From: -z | fgrep -iqxf $FRIENDS
DR>
DR>
You've introduced the x flag to fgrep. Surely that means if you have
blobby(_at_)example(_dot_)com in the friends file and the text you are testing
is
<blobby(_at_)example(_dot_)co> then there is not an exact match?
To test, we don't need a procmail recipe, just the friends file
@example.com
good(_at_)msn(_dot_)com
and
echo "anyone(_at_)example(_dot_)com" | fgrep -if list.friends
and
echo "good(_at_)msn(_dot_)com" | fgrep -if list.friends
and
echo "bad(_at_)msn(_dot_)com" | fgrep -if list.friends
at the command line to test it.
I was doing this just the other day with my password autoresponder
passthrough address list because it was broken.
Alan
( Please do not email me AS WELL as replying to the list. Personal
email is welcome but may invoke a password autoresponder - the
current pass-through address is alan+1@ )
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail