procmail
[Top] [All Lists]

Re: recipe to drop spam depending on numerical hits score

2003-08-12 09:38:23
On Tue, 12 Aug 2003, ODHIAMBO Washington wrote:

SpamAssassin puts a header like this:

X-Spam-Status: No, hits=0.8 required=5.0

Does someone have an efficient recipe that can be used to drop such mail
if the score is a numerical value, NN?

You might want to check out "man Mail::SpamAssassin::Conf" and look at the
entry for "spam_level_stars" and "spam_level_char".

:0:
* ^X-Spam-Level: \/.+
* $ MATCH ?? > $NNminusOne
spam

(The space between $ and MATCH there is intentional.)

And I also think it is possible to compare the value with another from a
file (or DB) for some users

INCLUDERC to read a file containing an appropriate variable assignment,
perhaps?


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