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

Jed Brown jed at 59A2.org
Thu Jan 28 13:16:14 PST 2010


On Thu, 28 Jan 2010 15:49:34 -0500, Ben Gamari <bgamari at 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


More information about the notmuch mailing list