Yes, actually it is exactly what I'm looking for. I saw another sa-stats script that only showed the %'s for HAM and SPAM and the average score and what not. Thank you sir for sending me this.

Dan Schaefer
Application Developer
Performance Administration Corp.



Rick Macdougall wrote:
Daniel Schaefer wrote:
I have searched far and wide for a good Spamassassin report using numerous keywords in Google searches, but I can't find the one that fits my needs. I am looking for a script that can be run via cron job on a daily basis. I would pass the script the location of the mail log. The output will show me for each rule, how many times that rule passed the test. It will only show me the rules where the count is more than 0. For example:

ALL_TRUSTED 287
BAYES_00   67
BAYES_10   43
BAYES_20   23
...
RCVD_IN_PBL   25



Hi,

Does this do what you want ?

http://www.rulesemporium.com/programs/sa-stats.txt

Sample Output

Time Spent Running SA:         1.68 hours
Time Spent Processing Spam:    0.29 hours
Time Spent Processing Ham:     1.39 hours

TOP SPAM RULES FIRED
----------------------------------------------------------------------
RANK    RULE NAME                       COUNT  %OFMAIL %OFSPAM  %OFHAM
----------------------------------------------------------------------
   1    HTML_MESSAGE                      824    77.07   88.13   74.20
   2    RAZOR2_CHECK                      772    19.61   82.57    3.32
   3    RAZOR2_CF_RANGE_51_100            753    18.21   80.53    2.08
   4    RAZOR2_CF_RANGE_E8_51_100         713    17.19   76.26    1.91
   5    URIBL_BLACK                       652    16.03   69.73    2.13
   6    MIME_HTML_ONLY                    609    29.64   65.13   20.45

Regards,

Rick

Reply via email to