Bug#296322: spambayes: Please provide some locking mechanism

2005-03-02 Thread Bartosz Fenski aka fEnIo
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.

regards
fEnIo
-- 
  ,''`.  Bartosz Fenski | mailto:[EMAIL PROTECTED] | pgp:0x13fefc40 | irc:fEnIo
 : :' :   32-050 Skawina - Glowackiego 3/15 - w. malopolskie - Poland
 `. `'   phone:+48602383548 | proud Debian maintainer and user
   `-  http://skawina.eu.org | jid:[EMAIL PROTECTED] | rlu:172001


signature.asc
Description: Digital signature


Bug#296322: spambayes: Please provide some locking mechanism

2005-03-02 Thread Alexandre Fayolle
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


Bug#296322: spambayes: Please provide some locking mechanism

2005-03-01 Thread Alexandre Fayolle
On Tue, Mar 01, 2005 at 10:03:14AM -0800, Debian Bug Tracking System wrote:
 Processing commands for [EMAIL PROTECTED]:
 
  retitle 296322 Please provide some locking mechanism

Could you please elaborate?  

-- 
Alexandre Fayolle   


signature.asc
Description: Digital signature