New guy on the block, and have a quick/I hope easy question. In my
procmailrc I have figured out how to delete emails from know spammers using
a file to hold the list. I think that is lesson 1 when learning procmail.
#killing off the list of spammers
* ? formail -x"From" -x"From:" -x"Sender:" \
-x"Reply-To:" -x"Return-Path:" -x"To:" \
| egrep -is -f black.lst
black.lst has a bunch of emails, one after another.
My question is this...How can I do this for a list of subjects in a file
Right now I do it this way, but I would rather not mess with the procmailrc
file every time I want to add a new subject. I would also be able to remove
the linebuf I had to add to handle the large amount of subjects blocked.
My current example
#Subjects for deleting
|.*Toss The 9 to 5.*\
|.*A funny game.*\
|.*A good tool.*\
|.*A new website.*\
|.*A powful tool.*\
|.*A bunch more subjects are below this on my procmailrc.*"
#killing off the bad subjects
* $^Subject: ($TRASHSUB)
thanks for the help...
Westcoast First Aid
procmail mailing list