On Wed, Mar 02, 2005 at 11:18:13AM +0100, Bartosz Fenski aka fEnIo wrote: > On Tue, Mar 01, 2005 at 08:54:08PM +0100, Alexandre Fayolle wrote: > > > > retitle 296322 Please provide some locking mechanism > > > > Could you please elaborate? > > I'm not certainly sure what's unclear here ;) > > By database was corrupted due to simultaneous write access to it. > And this happened because spambayes doesn't have any internal locking > mechanism. > > I know I can use procmail lock files but that doesn't solve my problem, > cause let's say I'm downloading 200 mails, and procmail starts to deliver > them to my mailboxes. > > This could take even 5 minutes, and in the same time I'm reading processed > mails in mutt. Let's say some of those mails are wrongly classified so I'm > using some mutt macro to mark them as spam. > > Tada! This way both procmail and mutt tries to process mails with spambayes > and my database get corrupt. > > That's very usual case on my box.
OK, I understand better. I'll forward the issue to upstream. -- Alexandre Fayolle LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org
signature.asc
Description: Digital signature