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