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

Jani Nikula jani at nikula.org
Thu Jan 5 12:58:30 PST 2012


On Thu, 05 Jan 2012 12:38:18 -0800, Jameson Graef Rollins <jrollins at finestructure.net> wrote:
> On Thu, 05 Jan 2012 22:32:16 +0200, Jani Nikula <jani at 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.


More information about the notmuch mailing list