From: Jani Nikula Date: Sat, 9 Mar 2013 14:56:49 +0000 (+0200) Subject: cli: add --remove-all option to "notmuch tag" X-Git-Tag: 0.16_rc1~171 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=268666a071db33c5ce6a01b052d9a19c184e10f6;hp=268666a071db33c5ce6a01b052d9a19c184e10f6;p=notmuch cli: add --remove-all option to "notmuch tag" 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 ---