RFC: Dovecot locking

Rob Browning rlb at defaultvalue.org
Fri Feb 18 07:56:01 PST 2011


Rob Browning <rlb at defaultvalue.org> writes:

> This is an unfinished patch to handle Dovecot locking, which is useful
> if we'd like to support running notmuch directly on a Dovecot Maildir:
>
>   http://wiki.dovecot.org/MailboxFormat/Maildir#Locking
>
> For now, I'm interested in general comments, i.e. is this desirable, is
> it a reasonable approach, etc.  As you can see, there's no config
> handling yet, so -llockfile is added unconditionally.

Oh, and as Austin reminded me, I forgot to mention that liblockfile may
or may not be appropriate (algorithmically).  I'm planning to check and
see how Dovecot handles stale files -- lockfile_create() assumes that
any file older than five minutes is stale.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4


More information about the notmuch mailing list