SPAM=`cat $HOME/spam.txt`
:0
* $^Subject: *${SPAM}
| (formail -r; \
echo "Sorry, but anything with that in the Subject likely is Spam."; \
) | $SENDMAIL -t
My spam.txt file reads "XXX|Viagra|Porn|Free|Money.. yadda yadda"
Is there some variable I can use to say which keyword matched? This is
probably more a regexp question than a procmail one I suppose. Also does
someone know of a way to put the words in the spam.txt file one per
line, then join them together to create the regexp using awk or
something?
--
Johh Heyer - john(_at_)personal(_dot_)supranet(_dot_)net -
http://heyer.supranet.net
"Me fail English? That's unpossible!" -- Ralph Wiggam
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail