Opened 17 years ago

Last modified 17 years ago

#308 new enhancement

sort rulestats by relevance

Reported by: dmorton Owned by: rjl
Priority: normal Milestone:
Component: PHP scripts Version: 1.0.1
Severity: normal Keywords: rule stats triggered


It might be nice to be able to sort rulestats.php by Score * Triggered to see how a rule has affected the total score.

For example, right now a top entry is:

HTML_MESSAGE which scores a 0.001 times 33 hits. It has contributed 0.033 points.


BAYES_99 3.500 times 15 is 52.5

Thus, the bayes_99 rule has had far more influence.

Change History (2)

comment:1 Changed 17 years ago by dmorton

  • Type changed from defect to enhancement

comment:2 Changed 17 years ago by rjl

  • Keywords rule stats triggered added

Interesting idea--a score-weighted frequency tabulation, effectively. Easy enough to add, since it requires no additional storage.

It would only be a rough approximation, however, since the score value stored in the maia_sa_rules table for each rule is updated whenever a new version of SpamAssassin is installed, or sa-update or RulesDuJour? install changes. The BAYES_99 rule, for instance, may have had a score of 3.200 for many months until the latest update, at which point it became 3.500, so if you're just multiplying the frequency by the current score value you may be over- (or under-) estimating the influence of the rule.

Note: See TracTickets for help on using tickets.