[TAG] Spam missing Subject header
Ben Okopnik
ben at callahans.org
Mon Jul 5 21:24:18 MSD 2004
On Mon, Jul 05, 2004 at 12:07:37PM -0500, John Karns wrote:
> On Mon, 5 Jul 2004, Ben Okopnik so eloquently said:
>
> > On Mon, Jul 05, 2004 at 12:53:29AM -0500, John Karns wrote:
> > > A trick some spammers seem to be using now is to leave out the Subject
> > > header. Anyone have a suggestion about how to deal with that in
> > > .procmailrc? Is it possible?
> >
> > Why is it a trick? Is it supposed to somehow bypass your filtering?
>
> That's my supposition. E.g., if I have procmail set to filter on subject
> header, then they bypass any filtering on subject, including an empty
> header.
In that case, you can always tell procmail to file these things to your
spam folder - or just /dev/null them, if you're that brave. :)
----------------------------------------------------------------------
# Toss the stuff w/o a "Subject: " header
:0
* ? [ -z "`formail -X 'Subject'`" ]
/dev/null
----------------------------------------------------------------------
Note that this will not match an empty-but-existing subject (you can use
"-x" instead of "-X" if you want that) - it will only trash the ones
without a valid "Subject: " field.
* Ben Okopnik * okopnik.freeshell.org * Editor-in-Chief, Linux Gazette *
-*- See the Linux Gazette in its new home: <http://linuxgazette.net> -*-
More information about the TAG
mailing list