procmail
[Top] [All Lists]

Re: Recipe to dump mail based om Spamassasin score

2002-08-29 04:06:48
dman(_at_)nomotek(_dot_)com skribis:

This should work, though, with a fairly recent version of
procmail (what's yours?):

        :0
        * ^X-Spam-Status: Yes, hits=\/[^.]+
        {
        :0:
        * MATCH ?? ^^1[0-5]^^
        likelyspam

        :0 E
        /dev/null
        }

That saves mail SA marked as spam (score >=10 according to
your SA ruleset) but less than your absolute ceiling to a
file called likelyspam; and dumps anything else SA identified
as spam (will be 16 or higher) to /dev/null.

I would still put a 
   :0
   * MATCH ?? ^^[0-9]^^ 
   { 
      #alert something
   }
in between, for new times sake.

And maybe change the first test to 
   * ^X-Spam-Status: Yes, hits=\/[0-9]+
or even
   * ^X-Spam-Status: Yes, hits=[^0-9]*\/[0-9]+
because that has become a habit here.


Need to find time now to un-mangle my Subjects, because I often 
forget to (manually) remove [procmail] from my replies.

-- 
Affijn, Ruud

_______________________________________________
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>