<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/tagging, branch 0.17</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.17</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.17'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-03-30T22:34:22Z</updated>
<entry>
<title>test: notmuch tag --remove-all</title>
<updated>2013-03-30T22:34:22Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-03-09T14:56:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6b405143d76bdbb99a101ae88b2e63224371d911'/>
<id>urn:sha1:6b405143d76bdbb99a101ae88b2e63224371d911</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test/tagging: add test for naked punctuation in tags; compare with quoting spaces.</title>
<updated>2013-01-08T00:49:00Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bd829fde9640cf23482b3f1dfe2007ef38f2b24a'/>
<id>urn:sha1:bd829fde9640cf23482b3f1dfe2007ef38f2b24a</id>
<content type='text'>
This test also serves as documentation of the quoting
requirements. The comment lines are so that it exactly matches the man
page. Nothing more embarrassing than having an example in the man page
fail.
</content>
</entry>
<entry>
<title>test/tagging: add test for exotic message-ids and batch tagging</title>
<updated>2013-01-08T00:49:00Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bbdbc838547667c880ee38d017f751ebe5da49ab'/>
<id>urn:sha1:bbdbc838547667c880ee38d017f751ebe5da49ab</id>
<content type='text'>
The (now fixed) bug that this test revealed is that unquoted
message-ids with whitespace or other control characters in them are
split into several tokens by the Xapian query parser.
</content>
</entry>
<entry>
<title>test/tagging: add tests for exotic tags</title>
<updated>2013-01-08T00:49:00Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9a31cbd3867b286fb7c26533d1d8589d49e879cc'/>
<id>urn:sha1:9a31cbd3867b286fb7c26533d1d8589d49e879cc</id>
<content type='text'>
We test quotes seperately because they matter to the query escaper.
</content>
</entry>
<entry>
<title>test/tagging: add basic tests for batch tagging functionality</title>
<updated>2013-01-08T00:49:00Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e77a99f44e47951bb1a0bb2d8a5840f8cfabac3d'/>
<id>urn:sha1:e77a99f44e47951bb1a0bb2d8a5840f8cfabac3d</id>
<content type='text'>
This tests argument parsing, blank lines and comments, and basic hex
decoding functionality.
</content>
</entry>
<entry>
<title>test/tagging: add test for error messages of tag --batch</title>
<updated>2013-01-08T00:49:00Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=45c593095b9be9f28971c36aebf47520f7929bc4'/>
<id>urn:sha1:45c593095b9be9f28971c36aebf47520f7929bc4</id>
<content type='text'>
This is based on the similar test for notmuch restore, but the parser
in batch tagging mode is less tolerant of a few cases, in particular
those tested by illegal_tag.
</content>
</entry>
<entry>
<title>tag: Disallow adding malformed tags to messages</title>
<updated>2012-10-27T12:32:44Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-10-26T20:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e0a223d15656a8a8fd6564687425a7e583f29b61'/>
<id>urn:sha1:e0a223d15656a8a8fd6564687425a7e583f29b61</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>cli: refactor "notmuch tag" data structures for tagging operations</title>
<updated>2012-03-31T00:20:36Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-03-26T21:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8e3ff8fb03dc647f1daea4665c35a2214473ced8'/>
<id>urn:sha1:8e3ff8fb03dc647f1daea4665c35a2214473ced8</id>
<content type='text'>
To simplify code, keep all tagging operations in a single array
instead of separate add and remove arrays. Apply tag changes in the
order specified on the command line, instead of first removing and
then adding the tags.

This results in a minor functional change: If a tag is both added and
removed, the last specified operation is now used. Previously the tag
was always added. Change the relevant test to reflect the new
behaviour.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<entry>
<title>test: add test for both adding and removing a tag at the same time</title>
<updated>2012-03-31T00:20:21Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-03-26T21:04:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=918b80359727de2dd87f26a252de8faee2eff78c'/>
<id>urn:sha1:918b80359727de2dd87f26a252de8faee2eff78c</id>
<content type='text'>
The current behaviour is that regardless of the order in which the
addition and removal of a tag are specified, the tag is added.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<entry>
<title>test: Add a test script for "notmuch tag"</title>
<updated>2011-11-15T01:21:22Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2011-11-08T03:57:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ed20210b6db0b237d48765351cb99b87be7a0509'/>
<id>urn:sha1:ed20210b6db0b237d48765351cb99b87be7a0509</id>
<content type='text'>
</content>
</entry>
</feed>
