sa-addon-stats.pl - SpamAssassin

This is a discussion on sa-addon-stats.pl - SpamAssassin ; Bowie, you wrote this script back in 2006, I've been running it since back in Aug 0f 2006 and today just noticed something. The addition doesn't seem to be quite right. For instance: FreeMail.cf: * Rule Name * * * ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: sa-addon-stats.pl

  1. sa-addon-stats.pl

    Bowie, you wrote this script back in 2006, I've been running it since back in
    Aug 0f 2006 and today just noticed something. The addition doesn't seem to be
    quite right. For instance:

    FreeMail.cf:
    * Rule Name * * * * * * * * * * Score * * Ham *Spam * %of Ham * %of Spam
    * -----------------------------------------------------------------------
    * FREEMAIL_REPLYTO * * * * * * * 2.00 * * *2 * * 20 * * 1.87% * * 14.60%
    * FREEMAIL_FROM * * * * * * * * *1.00 * * *8 * * 56 * * 7.48% * * 40.88%
    * -----------------------------------------------------------------------
    * OVERALL * * * * * * * * * * * * * * * **8 * * 56 * * 7.48% * * 40.88%

    iXhash.cf:
    * Rule Name * * * * * * * * * * Score * * Ham *Spam * %of Ham * %of Spam
    * -----------------------------------------------------------------------
    * LOGINHASH * * * * * * * * * * *4.50 * * *0 * * *3 * * 0.00% * * *2.19%
    * LOGINHASH2 * * * * * * * * * * 2.50 * * *0 * * *3 * * 0.00% * * *2.19%
    * IXHASH * * * * * * * * * * * * 2.50 * * *0 * * *8 * * 0.00% * * *5.84%
    * -----------------------------------------------------------------------
    * OVERALL * * * * * * * * * * * * * * * **0 * * *9 * * 0.00% * * *6.57%


    I'm not good at scripts so possibly you could find a way to fix this? I would
    have emailed you privately however, I don't have your email address so had to
    post to the list.

    --
    Chris
    KeyID 0xE372A7DA98E6705C

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkh6eQIACgkQ43Kn2pjmcFynXACfRcYcseAZh5 cJfckPPMqxCOhk
    dDwAniGTt0kwoP+HzCYRfWv5DfbGGFEA
    =Kkxq
    -----END PGP SIGNATURE-----


  2. Re: sa-addon-stats.pl

    On Sun, 2008-07-13 at 16:52 -0500, Chris wrote:
    > Bowie, you wrote this script back in 2006, I've been running it since back in
    > Aug 0f 2006 and today just noticed something. The addition doesn't seem to be
    > quite right. For instance:
    >
    > FreeMail.cf:
    > Rule Name Score Ham Spam %of Ham %of Spam
    > -----------------------------------------------------------------------
    > FREEMAIL_REPLYTO 2.00 2 20 1.87% 14.60%
    > FREEMAIL_FROM 1.00 8 56 7.48% 40.88%
    > -----------------------------------------------------------------------
    > OVERALL 8 56 7.48% 40.88%
    >
    > iXhash.cf:
    > Rule Name Score Ham Spam %of Ham %of Spam
    > -----------------------------------------------------------------------
    > LOGINHASH 4.50 0 3 0.00% 2.19%
    > LOGINHASH2 2.50 0 3 0.00% 2.19%
    > IXHASH 2.50 0 8 0.00% 5.84%
    > -----------------------------------------------------------------------
    > OVERALL 0 9 0.00% 6.57%
    >
    >
    > I'm not good at scripts so possibly you could find a way to fix this? I would
    > have emailed you privately however, I don't have your email address so had to
    > post to the list.


    Chris,

    This is actually working as designed. According to the comments in the
    code, the OVERALL numbers are "number of spams hit by the file, not just
    number of rule hits". In other words, since some spam hit multiple rules
    in the same .cf file, this is a count of the number of unique hits to
    that whole set of rules.

    In your first example, of the 8 messages that hit FREEMAIL_FROM, 2 of
    them also hit the FREEMAIL_REPLYTO from the same .cf file, so the total
    is 8 not 10.

    -Bill


  3. Re: sa-addon-stats.pl

    On Sunday 13 July 2008 5:56 pm, Bill Randle wrote:

    > >
    > > I'm not good at scripts so possibly you could find a way to fix this? I
    > > would have emailed you privately however, I don't have your email address
    > > so had to post to the list.

    >
    > Chris,
    >
    > This is actually working as designed. According to the comments in the
    > code, the OVERALL numbers are "number of spams hit by the file, not just
    > number of rule hits". In other words, since some spam hit multiple rules
    > in the same .cf file, this is a count of the number of unique hits to
    > that whole set of rules.
    >
    > In your first example, of the 8 messages that hit FREEMAIL_FROM, 2 of
    > them also hit the FREEMAIL_REPLYTO from the same .cf file, so the total
    > is 8 not 10.
    >
    > -Bill


    Thanks Bill, see I said I wasn't any good with scripts, and I guess I should
    have read the comments.

    Chris

    --
    Chris
    KeyID 0xE372A7DA98E6705C

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkh6isAACgkQ43Kn2pjmcFx4lQCfa+/0fFSTqcmjGpwZBy3n/kG+
    wmYAmwXNqmvdLeo3u7lEIZpfXNFEQFmg
    =rqiQ
    -----END PGP SIGNATURE-----


  4. Re: sa-addon-stats.pl

    Nice looking script, where can I download it?


    --
    Michael Scheidell, CTO
    >|SECNAP Network Security

    Winner 2008 Network Products Guide Hot Companies
    FreeBSD SpamAssassin Ports maintainer


    __________________________________________________ _______________________
    This email has been scanned and certified safe by SpammerTrap(r).
    For Information please see http://www.spammertrap.com
    __________________________________________________ _______________________


  5. Re: sa-addon-stats.pl

    On Sun, 2008-07-13 at 21:01 -0400, Michael Scheidell wrote:
    > Nice looking script, where can I download it?
    >


    I found it here:
    http://markmail.org/download.xqy?id=...bgdhj&number=1

    -Bill


+ Reply to Thread