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

David Edmondson dme at dme.org
Mon Jan 9 02:46:28 PST 2012


On Mon, 09 Jan 2012 12:38:58 +0200, Tomi Ollila <tomi.ollila at 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....)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120109/a2e2ea9d/attachment.pgp>


More information about the notmuch mailing list