]> git.notmuchmail.org Git - notmuch/commitdiff
cli: add --remove-all option to "notmuch tag"
authorJani Nikula <jani@nikula.org>
Sat, 9 Mar 2013 14:56:49 +0000 (16:56 +0200)
committerDavid Bremner <bremner@unb.ca>
Sat, 30 Mar 2013 22:33:59 +0000 (18:33 -0400)
Add --remove-all option to "notmuch tag" to remove all tags from the
messages matching query before applying the tag changes. This allows
removal of all tags and unconditional setting of the tags of a
message:

$ notmuch tag --remove-all id:foo@example.com
$ notmuch tag --remove-all +foo +bar id:foo@example.com

without having to resort to the complicated (and still quoting
broken):

$ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \
  id:foo@example.com
$ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \
  +foo +bar id:foo@example.com


No differences found