You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Daniel Aquino <mr...@gmail.com> on 2007/08/14 20:46:00 UTC
Get Magic Statistics From Mail::SpamAssassin
I'm writing a perl script to train sa.
And I'm wondering how I can get the statics that "sa-learn --dump magic"
would give me ?
Thanks!
R: Get Magic Statistics From Mail::SpamAssassin
Posted by Giampaolo Tomassoni <g....@libero.it>.
> Da: Daniel Aquino [mailto:mr.danielaquino@gmail.com]
>
> I'm writing a perl script to train sa.
>
> And I'm wondering how I can get the statics that "sa-learn --dump magic"
would give me ?
>
> Thanks!
Which statistics?
"sa-learn --dump magic" only gives some infos about the bayes db status.
See:
xxx ~ # su -s /bin/sh -c '/usr/bin/sa-learn --dump magic' - amavis
0.000 0 3 0 non-token data: bayes db version
0.000 0 42955 0 non-token data: nspam
0.000 0 24938 0 non-token data: nham
0.000 0 161062 0 non-token data: ntokens
0.000 0 1184337895 0 non-token data: oldest atime
0.000 0 1187116896 0 non-token data: newest atime
0.000 0 1187113117 0 non-token data: last journal sync
atime
0.000 0 1187102847 0 non-token data: last expiry atime
0.000 0 2764800 0 non-token data: last expire atime
delta
0.000 0 3256 0 non-token data: last expire
reduction count
Giampaolo
Re: Get Magic Statistics From Mail::SpamAssassin
Posted by Theo Van Dinter <fe...@apache.org>.
On Tue, Aug 14, 2007 at 02:46:00PM -0400, Daniel Aquino wrote:
> I'm writing a perl script to train sa.
>
> And I'm wondering how I can get the statics that "sa-learn --dump magic"
> would give me ?
FWIW, if you're writing perl you should feel free to edit sa-learn and see how
it's done. :)
(hint: there's a M::SA function you can call, though apparently it isn't fully
documented in the POD. :()
--
Randomly Selected Tagline:
"Bush keeps saying the terrorists hate us for our freedom, and he's working
damn hard to see that pretty soon, that won't be a problem."
- Bill Maher, Real Time with Bill Maher, Episode 87