[Spambayes] Outlook addin using bsddb

Mark Hammond mhammond at skippinet.com.au
Fri Feb 7 22:10:06 EST 2003


[Alex]
> On Fri, Feb 07, 2003 at 04:46:30PM +1100, Mark Hammond wrote:
> > [Resending - appears to have hit the bit-bucket!]
> >
> > I have just checked in a change to the Outlook plugin that
> will use a bsddb
> > style database if a reasonable implementation can be found.
>  Currently, a
> > "reasonable" implementation means:
> > * A bsddb3 module can be imported.
>
> Maybe you want need bsddb3.

Yes, you need either bsddb3, *or* Python 2.3 and a "bsddb" module.  If the
only thing available if dumbdbm, or anyotherdbm, then *Outlook* sticks to
pickles.

This functionality now exists in 2 places, and it is a bit of a mess out of
our control.

1) spambayes/dbmstorage.py knows to avoid "bsddb" on Windows pre Python 2.3
at all costs, due to bugs.  Apart from this, it does a fairly standard
"fastest first" dbm search.  Thus, dbmstorage.py on Windows Python 2.2 and
earlier will generally select dumbdbm.  If you manually installed bsddb3, or
run a 2.3 alpha, then you will get a bsd database from dbmstorage.

2) the Outlook plugin steps in before this using a pickle, avoiding
dbmstorage completely if no good bsddb is available. ie, Outlook will
*never* use a dumbdbm.

>     alex> Can anyone corroborate this?

Yep :)

Mark.




More information about the Spambayes mailing list