[Spambayes] *nix version

Tony Meyer tameyer at ihug.co.nz
Wed Feb 18 19:23:04 EST 2004


> Is there a way to get the ham/spam ratio from the *nix version? The 
> documentation is a bit sparse.

I don't know if there's a better way, but you can do "sb_server.py -o
globals:verbose:True" and look at what's printed to stdout.  (Starting
sb_server if you don't have any proxies configured will just start the web
interface, and you can stop it without any harm, although it might create
the cache directories).

Alternatively, you could patch contrib/spamcounts.py to do this (and maybe
submit a patch back).  "db.nspam" and "db.nham" are the attributes that you
need.

The sb_dbexpimp.py script can convert the db to text, but that's overkill
for what you need, really.

=Tony Meyer

---
Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don't send me personal mail about SpamBayes. This
way, you get everyone's help, and avoid a lack of replies when I'm busy.




More information about the Spambayes mailing list