Is bogofilter threads-safe ?

David Relson relson at osagesoftware.com
Wed Sep 24 13:34:11 CEST 2003


On Wed, 24 Sep 2003 12:32:05 +0400
Evgeny Kotsuba <evgen at shatura.laser.ru> wrote:

> Hi,
> 
> Just a simple question:
> Is bogofilter threads-safe ?
> 
> SY,
> EK

Evgeny,

I assume you're asking what happens when multiple copies of bogofilter
are running.  When it's scoring a message it's just reading the wordlist
database and everything is effortlessly safe.  When updating (writing)
the wordlist, bogofilter has code for locking the database until it's
done.  This works well, although there have been periodic reports of
database corruption.  The cause is unknown and the problem isn't
reproduceable.  It just happens.  It _may_ be a problem with the
BerkeleyDB.

To be safe, you might want to back up the wordlist.db file (keep copies
from the last 2 or 3 days or so) and run db_verify to check the database
integrity.

HTH,

David




More information about the Bogofilter mailing list