On Mon, 09 Jan 2012 12:38:58 +0200, Tomi Ollila 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....)