[Spambayes] Hammiefilter doesn't write out the pickle

Tim Stone - Four Stones Expressions tim@fourstonesExpressions.com
Tue Nov 19 00:10:47 2002

I think we've got some real potential for a great little api here.  I do have
some questions about the data storage.  We've agreed that an explicit store is 
the way we want to go, which I think is correct.  However, dbm really doesn't 
support this.  I fooled with a couple ideas (hacks) to make DBDict behave in a 
load/store fashion, and the best thing I can come up with is to actually make 
a working copy of the dbm file, which is then used for the session.  When 
store() is called, the original is replaced with the working copy.   There are 
some difficulties with this approach.  If store is never called, then there is 
no guaranteed way to clean up the working copy.  Replacing the original with 
the working copy may be a bit difficult, because dbm doesn't support a close 

SOOOOO... Tim Stone's question is: "Should I go ahead and do that?"

- TimS

11/18/2002 1:06:18 PM, Richie Hindle <richie@entrian.com> wrote:

>Hi Neale,
>> I think it may finally be time to give hammie a big makeover--it should
>> just provide the Hammie class, and not be executable.
>You might be right.  Especially given that Hammie can be used remotely via
>XML-RPC, I wonder whether Tim Stone's Bayes class and Hammie should be
>rolled into one, and any client (including pop3proxy) that currently uses
>classifier.Bayes or Bayes.XXXBayes should used the new class(es) - that
>would unify the API across all the clients, and make that API available
>remotely for (almost) free.  We could even document it... 8-)
>Richie Hindle
>Spambayes mailing list
- Tim

More information about the Spambayes mailing list