----- Original Message ----- From: "Chris Purves" <[EMAIL PROTECTED]>
To: <users@spamassassin.apache.org>
Sent: Thursday, February 02, 2006 9:00 PM
Subject: Re: Post your top 10 from sa-stats


John Fleming wrote:
Wrong tool. Visit http://www.rulesemporium.com/ and find the
sa-stats.pl on their site. It is the one most of us are using. It
gives individual score breakdowns. The name coincidence is
regrettable.


I have the "other sa-stats.pl" working well on my system. But I'm apparently not pointing the "other" version from RE to the log file correctly, as the results are all zero.

Major perl inexperience here - Would someone pleez send me their config lines for the RE version?

Using the latest file from rules emporium, I made the file execuatable, then:

./sa-stats-1.0.txt -l /var/log/spamassassin/ -f spamd.log

For help:
./sa-stats-1.0.txt -h

Thanks for your response! I am running 3.0.3 on Debian Sarge (stable). The logs I have to use are /var/log/mail.log or /var/log/syslog. Using the "other" sa-stats.pl (that works fine), I use the log mail.log. Both mail.log and syslog have entries like:

Jan 31 06:52:09 Luke spamd[8429]: identified spam (129.9/5.0) for john:1000 in 11.3 seconds, 3146 bytes. Jan 31 06:52:09 Luke spamd[8429]: result: Y 129 - BAYES_99,DNS_FROM_AHBL_RHSBL,DRUGS_ERECTILE,DRUG_DOSAGE,DRUG_ED_CAPS,HTML_FONT_BIG,HTML_FONT_SIZE_LARGE,HTML_MESSAGE,HTML_SHOUTING5,INVALID_DATE,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,RCVD_IN_BL_SPAMCOP_NET,SARE_SUPERVIAGRA,UPPERCASE_25_50,URIBL_AB_SURBL,URIBL_BLACK,URIBL_SBL,URIBL_SC_SURBL,URIBL_WS_SURBL,USER_IN_BLACKLIST,WLS_URI_OPT_1406 scantime=11.3,size=3146,mid=<[EMAIL PROTECTED]>,bayes=1,autolearn=spam Jan 31 06:52:09 Luke postfix/local[10453]: F3FF433E703: to=<[EMAIL PROTECTED]>, relay=local, delay=12, status=sent (delivered to command: /usr/bin/procmail)
Jan 31 06:52:09 Luke postfix/qmgr[8796]: F3FF433E703: removed

However, when I run sa-stats.txt, I everything is empty. It must not be getting the right log?? THANKS! -John

# perl ./sa-stats-1.0.txt -l /var/log/syslog.log


Email:        0  Autolearn:     0  AvgScore:   0.00  AvgScanTime:  0.00 sec
Spam:         0  Autolearn:     0  AvgScore:   0.00  AvgScanTime:  0.00 sec
Ham:          0  Autolearn:     0  AvgScore:   0.00  AvgScanTime:  0.00 sec

Time Spent Running SA:         0.00 hours
Time Spent Processing Spam:    0.00 hours
Time Spent Processing Ham:     0.00 hours

TOP SPAM RULES FIRED
----------------------------------------------------------------------
RANK    RULE NAME                       COUNT  %OFMAIL %OFSPAM  %OFHAM
----------------------------------------------------------------------
----------------------------------------------------------------------

TOP HAM RULES FIRED
----------------------------------------------------------------------
RANK    RULE NAME                       COUNT  %OFMAIL %OFSPAM  %OFHAM
----------------------------------------------------------------------
----------------------------------------------------------------------


#

Reply via email to