Ken A wrote:
> Is there any way to ask spamassassin what the score of a particular rule
> is? I have rules here and there, and would like to be able to easily
> look up the score of a rule without grepping all over the place.
> Ideas?

Well, for the "stock rules" that come with SA you only need to look in
50_scores.cf.. Or look at the unofficial "tests" section of the spamassassin
website.

But with a myriad of add-on rulesets, this becomes less straightforward.
Unfortunately I don't know of any good way of finding it without at least two
greps. You could simplify it a bit with a small shell script:


#!/bin/sh
grep $1 /usr/share/spamassassin/50_scores.cf
grep "score $1" /etc/mail/spamassassin/*.cf

Reply via email to