Re: [notmuch] Bulk message tagging

Subject: Re: [notmuch] Bulk message tagging

Date: Thu, 15 Apr 2010 18:46:56 -0700

To: Jesse Rosenthal, Xavier Maillard, Mark Anderson, notmuch@notmuchmail.org

Cc:

From: Carl Worth


On Thu, 15 Apr 2010 16:04:38 -0400, Jesse Rosenthal <jrosenthal@jhu.edu> wrote:
> On Wed, 14 Apr 2010 17:59:01 -0700, Carl Worth <cworth@cworth.org> wrote:
> > We could fix all[*] the bugs of "*" by changing it to simply call the
> > new region-based tagging function. The only concern I have with that is
> > that it might be significantly slower, (it will execute N "notmuch tag"
> > commands to tag the N threads in the current buffer, rather than just
> > one "notmuch tag" command with the same search).
> 
> Not quite true: the region command only executes one "notmuch tag"
> command over "id:X or id:Y or id:Z or ...". 

Oh, I see. Sorry for my misunderstanding.

So that is more efficient in that regard.

But it also does mean that this operation is all set up to run into
"argument list too long" errors.

We'll probably need to arrange for notmuch to accept search
specifications on stdin or so.

-Carl
part-000.sig (application/pgp-signature)

Thread: