On Thursday 29 July 2004 17:46, Patrick Shoaf wrote: > I would greatly appreciate any method to see which test I have installed, > and their scores. A simple table showing Test Name and score would be > sufficient. If there was a version or last update date, a column for that > would be nice. I then could quickly verify 1) I have all test I need/want > 2) I have scores that work for me 3) if there is a version/date, if the > test is the most recent.
Hi, You can get what I have (described bellow) but I doubt it will do what you want (you can try convince me to add what you want) as I, who have used SA for 3 days only, find myself using 1924 rules!!! I have written a perl script and here is what it does and presents: Go through "/usr/share/spamassassin" and "/etc/mail/spamassassin/" and parse the rules in all present cf files. I do it in a rather simple way and it would have been nice if modules to do that where present in Mail::SA (which might be already) if you give the script a rule name or names, you get this: rule 'URGENT_BIZ' : |- body = /usr/share/spamassassin/20_phrases.cf:418 |- body_definition = /urgent.{0,16}(?:assistance|business|buy|confidential| notice|proposal)/i |- describe = Contains urgent matter |- describe_address = /usr/share/spamassassin/20_phrases.cf:419 |- score = 2.0 |- score_address = /etc/mail/spamassassin/local.cf:15 `- warnings `- 0 = Redefinition of 'URGENT_BIZ:score' at '/etc/mail/spamassassin/local.cf:15' was defined at /usr/share/spamassassin/50_scores.cf:850 (not wrapped of course) warnings: Redefinition of 'URGENT_BIZ:score' at '/etc/mail/spamassassin/local.cf:15' was defined at /usr/share/spamassassin/50_scores.cf:850 Redefinition of 'VIRUS_WARNING202:score' at '/etc/mail/spamassassin/bogus-virus-warnings.cf:1195' was defined at /etc/mail/spamassassin/bogus-virus-warnings.cf:1190 Redefinition of 'VIRUS_WARNING_NETSKY4:describe' at '/etc/mail/spamassassin/bogus-virus-warnings.cf:2369' was defined at /etc/mail/spamassassin/bogus-virus-warnings.cf:2365 and some stats: 1924 rules in 38 files [12910 lines]: /usr/share/spamassassin/20_anti_ratware.cf no rules [184 days] /usr/share/spamassassin/10_misc.cf no rules [184 days] .... /etc/mail/spamassassin/70_sare_adult.cf 68 rules [3 days] /etc/mail/spamassassin/local.cf 1 rule [3 days] .... if you run the script without a rule name, you get: Spamassassin rules [1924] |- ACCEPT_CREDIT_CARDS | `- score = 2.507 2.596 0 1.037 |- ACCESSDB | `- score = 0 |- ACT_NOW_CAPS | `- score = 0.545 1.343 0 0.699 |- ADDRESSES_ON_CD | `- score = 0 ... 1920 more rules and this stats: 1924 rules in 38 files [12910 lines]: lowest score: -100.000. Highest score: 1000. 338 rules without score. 197 rules with score '0' (disabled!). what you get listed is easily configurable. Is that what you want? You'll have to install some perl modules. Some people are able to show stats about what filter triggers. Is that a standard tool? where do we get it? Cheers, Nadim.