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: Mon, 09 Jan 2012 10:46:28 +0000

To: Tomi Ollila, Jani Nikula, Austin Clements, Aaron Ecay

Cc: notmuch@notmuchmail.org

From: David Edmondson


On Mon, 09 Jan 2012 12:38:58 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:
> > The downside is that there's still a race condition: you could get new
> > messages between checking the number of messages in the thread and
> > tagging. The window for error would be much smaller than now, but it's
> > still there. (You could check afterwards if this happened, and notify
> > the user, "oooops, I just tagged N messages more than you intended"...)
> 
> And this could also be "false alarm" if the the new messages arrived
> after tagging but before checking...

Or another process could change the tags, meaning that the number stayed
the same but the set changed.

(Wheeee....)
part-000.sig (application/pgp-signature)

Thread: