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

Jani Nikula jani at nikula.org
Thu Jan 5 12:32:16 PST 2012


On Thu, 05 Jan 2012 15:10:33 -0500, Aaron Ecay <aaronecay at gmail.com> wrote:
> On Tue,  3 Jan 2012 20:29:06 +0200, Jani Nikula <jani at nikula.org> wrote:
> > Optimize thread archiving by combining all the -inbox tagging operations to
> > a single "notmuch tag" call.
> 
> Perhaps I’m missing something, but is there anything preventing emacs
> from just doing the following?
> 
> notmuch tag -inbox thread:000whatever

In the search view it does exactly this.

In the show view it only modifies the messages that are currently
visible. This is to make sure you don't accidentally archive things that
have arrived after refreshing the buffer. I think this is safest.

I suppose the point in the difference is that in search view you're
archiving the thread without seeing the messages anyway. In show view
you have had enough interest in the thread to open it, and you're making
the decision based on the messages you've seen.


BR,
Jani.


More information about the notmuch mailing list