[Spambayes] Oh good!
Tegels, Kent
Kent.Tegels at hdrinc.com
Mon Dec 15 09:06:46 EST 2003
That begs the question, do most SB/Python scripts need that path set?
-----Original Message-----
From: Tony Meyer [mailto:tameyer at ihug.co.nz]
Sent: Saturday, December 13, 2003 8:28 PM
To: 'kent tegels'; spambayes at python.org
Subject: RE: [Spambayes] Oh good!
> Or am I just asking for too much.
You're not, but I'll answer this anyway <wink>.
> If am I, could somebody point me at a depickle/otherwise export the
> .db files to some other format so I can get back to the first task I
> wanted to -- get the wordlist and the ham and spam counts?
The sb_dbexpimp.py script in the scripts folder of the source will do
this.
You can convert to and from pickle and bsddb, and also to/from 'flat'
text ('`' delimited, for some reason). You'll need need the full source
package to do this (well, some subset of that, anyway). Easiest to just
unpack the archive, "set pythonpath=path:\to\archive" and then run the
script. Running with no options will give example usage.
=Tony Meyer
More information about the Spambayes
mailing list