procmail
[Top] [All Lists]

Re: Spammish?

2003-02-15 18:41:38
OK.  Given enough time and enough monkeys ...

Here's what I've come up with:

VERBOSE and all that other stuff

EOL="
"

:0 fwh
* condition
{
    LOG="SPAM: Broke rule 1$EOL"
    SPAMFLAG="yes"
}

:0 fwh
* condition
{
    LOG="SPAM: Broke rule 2$EOL"
    SPAMFLAG="yes"
}

:0 c
* $SPAMFLAG ?? yes
spamfolder

(what falls through gets sorted to appropriate folders)

I use 'grep ^SPAM logfile | sort -k2,4 | uniq -c' to get a breakdown of
the specific rules that get broken.

The SPAMFLAG variable gets set to "yes" if ANY recipe for spam gets
tripped; so I'm still black and white on this.

The Nigerian filter will get the fwb flags as it's a "body" check;
everthing else gets fwh.

Anything I'm missing?

                                - fleet -


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>