Re: RFC: Dovecot locking

Subject: Re: RFC: Dovecot locking

Date: Fri, 18 Feb 2011 09:56:01 -0600

To: notmuch@notmuchmail.org

Cc:

From: Rob Browning


Rob Browning <rlb@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

Thread: