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: Thu, 05 Jan 2012 22:32:16 +0200

To: Aaron Ecay, notmuch@notmuchmail.org

Cc:

From: Jani Nikula


On Thu, 05 Jan 2012 15:10:33 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> On Tue,  3 Jan 2012 20:29:06 +0200, Jani Nikula <jani@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.

Thread: