On Sat, Apr 05, 2003 at 01:38:45PM +0100, Alan Clifford wrote:
On Sat, 5 Apr 2003, Dallman Ross wrote:
DR> Okay:
DR>
DR> 1:08am [~/Mail] 640[1]> echo "one(_at_)example(_dot_)com" | fgrep -if
list.friends
DR> one(_at_)example(_dot_)com
DR>
DR> That's the problem without the x flag to fgrep.
I seem to remember that the requirement was for the friends list to have
something like
fred(_at_)yahoo(_dot_)com
@msn.com
With the x flag, myfriend(_at_)msn(_dot_)com would not be picked up.
You are right.
The answer is to use the w flag.
* ? formail -x From: -x Sender: -x Resent-From: -z | fgrep -iqwf $FRIENDS
This works on any of
fred(_at_)yahoo(_dot_)com
<fred(_at_)yahoo(_dot_)com>
yahoo.com
yahoo.com>
but not on any of
alfred(_at_)yahoo(_dot_)com
notyahoo.com
Note that @yahoo.com won't match; but just yahoo.com will match fine.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail