[ale] Procmail Filter
Jim Popovitch
jimpop at yahoo.com
Thu Jan 6 09:42:54 EST 2005
On Thu, 2005-01-06 at 07:56 -0500, Christopher Fowler wrote:
> I get many spam emails per day that have no subject and no email body.
> Not sure why. I would like to add a procmail rule that will send all
> emails with no Subject to my Spam folder. Can someone tell me how I can
> do this?
For starters... Is the Subject empty or non-existent?
Try this recipe for an empty Subject:
:0
* ^Subject:[ ]*\/[^ ].*
/var/log/spam/empty-subject-`date +%Y-%m-%d`
Try this one for a non-existent Subject:
:0
* !^Subject:
/var/log/spam/missing-subject-`date +%Y-%m-%d`
hth,
-Jim P.
More information about the Ale
mailing list