Re: [PATCH] emacs: call "notmuch tag" only once when archiving a thread

Subject: Re: [PATCH] emacs: call "notmuch tag" only once when archiving a thread

Date: Thu, 05 Jan 2012 22:58:30 +0200

To: Jameson Graef Rollins, Aaron Ecay, notmuch@notmuchmail.org

Cc:

From: Jani Nikula


On Thu, 05 Jan 2012 12:38:18 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
> On Thu, 05 Jan 2012 22:32:16 +0200, Jani Nikula <jani@nikula.org> wrote:
> > In the search view it does exactly this.
> 
> I worry about race conditions in this case, though.  I frequently
> archive threads after I've read everything, but I still want to know if
> new message to that thread come in.  If I attempt to archive a thread in
> notmuch-search, but a new message has entered the thread without me
> knowing it, I'll archive the new message before I had a chance to look
> at it.

Just to be clear: The patch in question does not alter this
behaviour. The race you describe is there already.

And at a glance, it does not look like something that would be trivial
to fix. The buffer does not have the information to do that.


BR,
Jani.

Thread: