]> git.cworth.org Git - notmuch/commit
tag: Disallow adding malformed tags to messages
authorAustin Clements <amdragon@MIT.EDU>
Fri, 26 Oct 2012 20:54:12 +0000 (16:54 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 27 Oct 2012 12:32:44 +0000 (09:32 -0300)
commite0a223d15656a8a8fd6564687425a7e583f29b61
tree5cb209f66a0a7f83fa075f3b5a9097f08d350bf3
parent02cafc84b4540cd0fb878121dcb3551b4ecd9fd1
tag: Disallow adding malformed tags to messages

This disallows adding empty tags, since nothing but confusion follows
in their wake, and disallows adding tags that begin with "-" because
they are also confusing, the tag "-" is impossible to remove using the
CLI, and because the syntax for removing such tags conflicts with long
argument syntax.

This does not place any restrictions on what tags can be removed, as
that would make it difficult for people who have the misfortune of
already having malformed tags to remove these tags.
notmuch-tag.c
test/tagging