On Tue, 2009-03-03 at 14:55 -0800, Mark Hedges wrote:
> 
> On Tue, 3 Mar 2009, Timo Sirainen wrote:
> > > > > How does IMAP lock the /var/spool/mail/user file?
> > > > mbox_read_locks and mbox_write_locks defines it.
> > >
> > > mbox_read_locks = fcntl
> > > mbox_write_locks = dotlock fcntl
> > >
> > > Unfortunately openwebmail only respects dotlocks.  (or
> > > flock, but procmail doesn't use flock, or doesn't say it
> > > does.)
> >
> > You can change those settings. For example:
> >
> > mbox_read_locks = flock
> > mbox_write_locks = dotlock flock
> >
> > Now Dovecot is compatible with openwebmail. And with
> > procmail both are still protected by the dotlock.
> 
> No, openwebmail only has the choice of either dotlock or
> flock, but not both.  So in this case, procmail could
> deliver using dotlock but openwebmail wouldn't know because
> it's only watching for flock.  Welcome to my hell!

Ah. Well, the last choice is then:

mbox_read_locks = dotlock
mbox_write_locks = dotlock

Dotlocking for reading isn't really optimal, but shouldn't really make
much of a difference usually.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to