[PATCH] emacs: call "notmuch tag" only once when archiving a thread
Tomi Ollila
tomi.ollila at iki.fi
Fri Jan 6 13:31:04 PST 2012
On Thu, 05 Jan 2012 22:58:30 +0200, Jani Nikula <jani at nikula.org> wrote:
> 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.
Hmm, I currently run 'notmuch new' from command line... I've been thinking
changing that but now knowing this issue I think I'm not going to do that...
> BR,
> Jani.
Tomi
More information about the notmuch
mailing list