[Spambayes] Database corruption
Tony Meyer
tameyer at ihug.co.nz
Thu Nov 10 10:04:39 CET 2005
> I read in your FAQ that you are difficulty in tracking down what
> corrupts the databases when using Spambayes with Outlook Express.
> I have been having this problem quite frequently and have had to
> zap the database multiple times and start over. It seems that this
> is happening when certain spam emails are received.
The problem is definitely not with parsing any email (but thanks for
the suggestion, anyway). If an email does fail to be parsed, then
sb_server will just skip filtering that message (and there'll be an
exception header with details of the problem, like the one with the
database error that you sent).
Concurrent access and failing to close the database properly (e.g.
crashes) can definitely cause problems. Those appear to be the
typical reason; unfortunately bsddb (the database backend used by
default) does not handle problems well.
It seems likely that for SpamBayes 1.1 (I really hope to get 1.1a2
out this month) we'll switch to ZODB, which is a much more reliable
database backend (and, perhaps more importantly, one that particular
SpamBayes developers have intimate knowledge of), and put rest to
these problems finally.
=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.
http://www.massey.ac.nz/~tameyer/writing/reply_all.html explains this.
More information about the SpamBayes
mailing list