From: Mark Anderson <MarkR.Anderson@amd.com>
To: cworth@cworth.org, notmuch@notmuchmail.org
Subject: Rather simple optimization for notmuch tag
Date: Fri, 18 Dec 2009 00:49:00 -0700 [thread overview]
Message-ID: <3wdskb8oh77.fsf@testarossa.amd.com> (raw)
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
next reply other threads:[~2009-12-18 7:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 7:49 Mark Anderson [this message]
2009-12-18 17:39 ` Rather simple optimization for notmuch tag Carl Worth
2009-12-23 3:45 ` Olly Betts
2009-12-23 18:18 ` Mark Anderson
2009-12-24 0:27 ` Olly Betts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3wdskb8oh77.fsf@testarossa.amd.com \
--to=markr.anderson@amd.com \
--cc=cworth@cworth.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).