Hi all,
Currently I filter all inbound mail with the following recipe which allow
me to examine the body of every message for potential spam :
:0 B
* .*\/(error|subscribe|remove|click|spam)
{
:0c:
IN-spam
:0
| /bin/mail -s "CHECK msgs-IN-spam(Body)" moshe
}
I would prefer to use a list of badwords rather than in the recipe itself
but can not seem to get this to work.
I tried the following which did not work :
:0
* ? formail -I "" \
| egrep -is -f $HOME/procmail/.mail_badwords
{
:0c:
IN-spam
:0
| /bin/mail -s "CHECK msgs-IN-spam(Body)" moshe
}
How can I use formail / egrep or similar to read each word in the body of
every message so that I can filter on typical s p a m words ?
Thanks,
Moshe
--
=====================================================
Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning.
(Rich Cook)
http://www.bgaddict.com/ - Home of Moshe's Joke of the Day, Boston
Network Users Group, New England Backgammon Club and the
WEareISRAEL mailing lists :
http://www.bgaddict.com/mailman/listinfo/
=====================================================
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail