On Sat, Feb 21, 2004 at 11:40:37PM +0100, Dallman Ross wrote:
But here's a quickie:
LIMIT = 3 # set your own number
MATCH
:0
* ^To:\/.*
* 1^1 MATCH ?? @
* ^Cc:\/.*
* 1^1 MATCH ?? @
* $ -$LIMIT^0
red-spam
It would fail on any email that had no To: and Cc:,
however. So let's fix that:
LIMIT = 3 # set your own number
SMALL = .000001
MATCH
:0
* $ -$SMALL^0 ^To:\/.*
* 1^1 MATCH ?? @
* $ -$SMALL^0 ^Cc:\/.*
* 1^1 MATCH ?? @
* $ -$LIMIT^0
red-spam
Also, you should understand that sometimes people will
email with the address in the comment ("name") part of
the address space; and that would get counted twice.
For example,
JoeSchmo(_at_)example(_dot_)com <joeschmo(_at_)example(_dot_)com>
Coding for such cases can be done, but it gets complex
fast. Otoh, most address space that looks like that
comes from spammers anyway.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail