RFC: Dovecot locking

2011-02-27 Thread Xavier Maillard
Hi Rob, On Wed, 16 Feb 2011 20:59:09 -0600, Rob Browning wrote: > 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. I need this since I can't curren

Re: RFC: Dovecot locking

2011-02-26 Thread Xavier Maillard
Hi Rob, On Wed, 16 Feb 2011 20:59:09 -0600, Rob Browning wrote: > 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. I need this since I can't current

RFC: Dovecot locking

2011-02-20 Thread Rob Browning
Rob Browning writes: > It looks like dovecot's interval is 10 seconds, so for this to work > right, notmuch will need to call lockfile_touch() more often than that. > > /* How often to touch the uidlist lock file when it's locked. > This is done both when using KEEP_LOCKED flag and when sy

RFC: Dovecot locking

2011-02-20 Thread Rob Browning
Rob Browning writes: > Rob Browning 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

Re: RFC: Dovecot locking

2011-02-20 Thread Rob Browning
Rob Browning writes: > It looks like dovecot's interval is 10 seconds, so for this to work > right, notmuch will need to call lockfile_touch() more often than that. > > /* How often to touch the uidlist lock file when it's locked. > This is done both when using KEEP_LOCKED flag and when sy

Re: RFC: Dovecot locking

2011-02-20 Thread Rob Browning
Rob Browning writes: > Rob Browning 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

RFC: Dovecot locking

2011-02-18 Thread Rob Browning
Rob Browning 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 desirabl

Re: RFC: Dovecot locking

2011-02-18 Thread Rob Browning
Rob Browning 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 desirabl

RFC: Dovecot locking

2011-02-16 Thread Rob Browning
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,

RFC: Dovecot locking

2011-02-16 Thread Rob Browning
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,