On Wednesday 01 February 2006 3:03 pm, Evan Platt wrote:
> Ok just found the sa-stats program.. Rather than reinvent the wheel, is
> there a cronjob someone has already written that would say generate a
> nice index per day, update it at midnight, i.e. something so it might
> generate a index page of say:
> Stats for <link>01-01-2006</link>
> Stats for <link>01-02-2006</link>
> .....
>
> and then each night append a new "Stats for <link> link?
>
> Am I asking too much? I'm not that good in perl or such, so that would be
> WAY out of my area of expertise.. :)
>
> Thanks.
>
> Evan


I've setup a cronjob in webmin (I'm basically lazy):

/etc/./sa-stats2.pl | mail [EMAIL PROTECTED] -s "SpamAssassin 
statistics"

Output is as below:

SpamAssassin statistics
 Date: Wed Feb  1 03:59:01 2006
 From: root <[EMAIL PROTECTED]>
 To: [EMAIL PROTECTED]
 
Email:      222  Autolearn:     0  AvgScore:  20.25  AvgScanTime:  4.45 sec
Spam:       171  Autolearn:     0  AvgScore:  34.51  AvgScanTime:  4.44 sec
Ham:         51  Autolearn:     0  AvgScore: -27.59  AvgScanTime:  4.48 sec

Time Spent Running SA:         0.27 hours
Time Spent Processing Spam:    0.21 hours
Time Spent Processing Ham:     0.06 hours

TOP SPAM RULES FIRED
TOP HAM RULES FIRED

HTH

-- 
Chris
Registered Linux User 283774 http://counter.li.org
19:50:23 up 23 days, 1:36, 2 users, load average: 1.26, 0.84, 0.49
Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk

Attachment: pgpe25CtrPN5Y.pgp
Description: PGP signature

Reply via email to