You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Matt Kettler <mk...@evi-inc.com> on 2005/07/01 00:19:15 UTC

Re: List with all spam tests for database import

Thomas Booms wrote:
> Hi all,
> 
> I'm new on this list since a few minutes.
> 
> I've written a small web interface to easy manage the possible anti spam
> settings within a mysql database. To not typing or converting many
> hundreds of spam test lines like its shown on the website, I want to get
> the original list.
> 
> I think that all the tests are in a database or in another file, which i
> can simply import?


All the default tests which come with spamassassin have a score entry in
/usr/share/spamassassin/50_scores.cf. You could extract the test names from the
score lines.

A simple grep would likely help you clean out unimportant lines:

grep -h "^score" /usr/share/spamassassin/50_scores.cf


If you're using add-on rules, you might need to parse through
/etc/mail/spamassassin/*.cf and extract any score lines from those.

And again, grep is your friend here:

grep -h "^score" /etc/mail/spamassassin/*.cf