unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Rather simple optimization for notmuch tag
@ 2009-12-18  7:49 Mark Anderson
  2009-12-18 17:39 ` Carl Worth
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Anderson @ 2009-12-18  7:49 UTC (permalink / raw
  To: cworth, notmuch

I was updating my poll script that tags messages, and a common idiom is
to put
 tag +mytag <search_terms> and not tag:mytag

I don't know anything about efficiency, but for the simple single-tag
case, couldn't we imply the "and not tag:mytag" from the +mytag action
list for the tag command?

The similar (dual?, rusty math terminology, beware of Math-tetanus) case
of "tag -mytag <search-terms> and tag:mytag" could be similarly optimized,
since the tag removal action ought to be a null action in the case that
the search terms matched on a thread or message, but the tag to be
removed isn't attached to the message/thread returned.

Any thoughts on the subject?

-Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-24  0:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18  7:49 Rather simple optimization for notmuch tag Mark Anderson
2009-12-18 17:39 ` Carl Worth
2009-12-23  3:45   ` Olly Betts
2009-12-23 18:18     ` Mark Anderson
2009-12-24  0:27       ` Olly Betts

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).