Re: [notmuch] tag dir proposal [was: Re: Git as notmuch object store]

Subject: Re: [notmuch] tag dir proposal [was: Re: Git as notmuch object store]

Date: Thu, 28 Jan 2010 22:16:14 +0100

To: Ben Gamari, notmuch

Cc:

From: Jed Brown


On Thu, 28 Jan 2010 15:49:34 -0500, Ben Gamari <bgamari@gmail.com> wrote:
> Sounds like you need to add a line to crontab.

I haven't been following this thread closely so I hope this isn't too
out of context.  I agree that certain things like notmuch-new should go
in the crontab, but I think that notmuch-new should need to be run
exactly once to process a new batch of messages into the desired state.

Having notmuch-new apply one set of tags and then relying on another
process run afterwards to change the tags according to a filter is
undesirable in my opinion, both for the mild performance reason of
making two passes, but more importantly because of lock contention
between the two processes and the ease of viewing the database in the
inconsistent state.  As far as I understand the situation, my favorite
solution is to have notmuch-new run a hook on each message as it is
indexed.

Jed

Thread: