You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2005/07/27 01:14:38 UTC

Re: generating rule stats from spamd logs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


jdow writes:
> From: "Chris Santerre" <cs...@MerchantsOverseas.com>
> 
> > Do you mean this script?
> >
> > http://www.rulesemporium.com/programs/sa-stats.txt
> >
> > Note: It may be named the same as sa-stats.pl, but it is different. Per
> > rule based.
> >
> > Another Dallas miracle!
> 
> Oh? Er, how does it determine if a message was ham or spam? It "looks like"
> it is rather random based on the reports. BAYES_99 may well hit on 84.33%
> of spam. But I doubt, given it's score, it hits on 44.53% of ham.

BTW, it might be quite helpful to rename that script, since there's
already an "sa-stats.pl" in the 'tools' dir -- as follows:

NAME
  sa-stats.pl - Builds received spam/ham report from mail log

VERSION
      $Revision: 1.17 $

SYNOPSIS
  Usage: sa-stats.pl [options]


DESCRIPTION
  Creates simple text report of spam/ham detected by SpamAssassin by pars-
  ing spamd entries in the mail log (generally /var/log/maillog)

AUTHORS
  Brad Rathbun <br...@computechnv.com> http://www.computechnv.com/

  Bob Apthorpe <ap...@cynistar.net>
  http://www.cynistar.net/~apthorpe/

  Duncan Findlay <du...@debian.org>

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFC5sPeMJF5cimLx9ARAnm6AJ9WMFjLrQs4wXMyrotNELwxsOqxTwCgipSv
glfSCHPpoztwAFzOMNkoRuE=
=JxV5
-----END PGP SIGNATURE-----


Re: generating rule stats from spamd logs

Posted by jdow <jd...@earthlink.net>.
From: "Justin Mason" <jm...@jmason.org>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> jdow writes:
> > From: "Chris Santerre" <cs...@MerchantsOverseas.com>
> >
> > > Do you mean this script?
> > >
> > > http://www.rulesemporium.com/programs/sa-stats.txt
> > >
> > > Note: It may be named the same as sa-stats.pl, but it is different.
Per
> > > rule based.
> > >
> > > Another Dallas miracle!
> >
> > Oh? Er, how does it determine if a message was ham or spam? It "looks
like"
> > it is rather random based on the reports. BAYES_99 may well hit on
84.33%
> > of spam. But I doubt, given it's score, it hits on 44.53% of ham.
>
> BTW, it might be quite helpful to rename that script, since there's
> already an "sa-stats.pl" in the 'tools' dir -- as follows:
>
> NAME
>   sa-stats.pl - Builds received spam/ham report from mail log
>
> VERSION
>       $Revision: 1.17 $
>
> SYNOPSIS
>   Usage: sa-stats.pl [options]
>
>
> DESCRIPTION
>   Creates simple text report of spam/ham detected by SpamAssassin by pars-
>   ing spamd entries in the mail log (generally /var/log/maillog)

That one is terminally broken. I had to install a perl module that
was not on my system. Once I did it reported all zeros.

I did make a change to the sa-stats.pl on the SARE site. It now works
quite nicely. (It was reporting nonsense for a couple of the values. Now
it reports something useful in that formerly nonsense slot.)

{^_^}