Re: [PATCH] cli: consider files vanishing during notmuch new non-fatal

Subject: Re: [PATCH] cli: consider files vanishing during notmuch new non-fatal

Date: Sat, 12 Nov 2016 17:36:41 -0400

To: Brian Sniffen

Cc: Paul Wise, Jani Nikula, notmuch@notmuchmail.org

From: David Bremner


Brian Sniffen <bts@evenmere.org> writes:

> That's hard, given dovecot pointed at the same maildir: it quickly
> moves files from new to cur. That makes notmuch insert pretty useless,
> and I rely on notmuch new to approach correctness.

I don't think this discussion is related to notmuch insert at all. If
you have found a race condition (or some other concurrency issue) in
notmuch-insert please report that seperately.

>
> But maybe I misunderstand: is the idea that it will return an error
>but keep processing?  Or stop on that error?

The whole discussion started because under certain circumstances it will
stop processing. The proposed patch makes it continue processing, but
report an error at the end.


Thread: