<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/tag-util.c, branch 0.24.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.24.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.24.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2014-03-06T11:46:27Z</updated>
<entry>
<title>cli: add missing \n in error message</title>
<updated>2014-03-06T11:46:27Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-03-04T16:51:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=735cbb8719068c4741ed0a4f5ea68f2ed31b7009'/>
<id>urn:sha1:735cbb8719068c4741ed0a4f5ea68f2ed31b7009</id>
<content type='text'>
The error messages returned by illegal_tag() don't contain newlines.
</content>
</entry>
<entry>
<title>cli: export function for illegal tag checking</title>
<updated>2014-03-06T11:41:38Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-02-23T16:55:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=07dd9d53cb7d92dc42ef697edb65e4c491b65928'/>
<id>urn:sha1:07dd9d53cb7d92dc42ef697edb65e4c491b65928</id>
<content type='text'>
This lets us check for forbidden tags consistently across the cli. No
functional changes.
</content>
</entry>
<entry>
<title>tag-util: do not reset list in parse_tag_command_line</title>
<updated>2013-06-29T17:36:23Z</updated>
<author>
<name>Peter Wang</name>
<email>novalazy@gmail.com</email>
</author>
<published>2013-06-23T04:23:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f00c925bd10c024d5b9f88d8903c7a0d14e9cc6a'/>
<id>urn:sha1:f00c925bd10c024d5b9f88d8903c7a0d14e9cc6a</id>
<content type='text'>
The 'insert' command will be better served if parse_tag_command_line
modifies a pre-populated list (of new.tags) instead of clobbering the
list outright.  The sole existing caller, notmuch_tag_command, is
unaffected by this change.
</content>
</entry>
<entry>
<title>tag-util: move out 'tag' command-line check</title>
<updated>2013-06-29T17:36:07Z</updated>
<author>
<name>Peter Wang</name>
<email>novalazy@gmail.com</email>
</author>
<published>2013-06-23T04:23:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e8efa11da90fa47adcbc489638320d61ac98391a'/>
<id>urn:sha1:e8efa11da90fa47adcbc489638320d61ac98391a</id>
<content type='text'>
Move an error condition specific to the 'tag' command out of
parse_tag_command_line so that parse_tag_command_line can be used for
the forthcoming 'insert' command.
</content>
</entry>
<entry>
<title>cli: make caller check tag count in parse_tag_command_line</title>
<updated>2013-03-30T22:33:40Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-03-09T14:56:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a6822eccaca773aa03473bca490618e30dac24ca'/>
<id>urn:sha1:a6822eccaca773aa03473bca490618e30dac24ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>notmuch-tag.c: convert to use tag-util</title>
<updated>2013-01-08T00:42:21Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:39Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e9b6e464745fdebd4c6367dfc731859fe390b531'/>
<id>urn:sha1:e9b6e464745fdebd4c6367dfc731859fe390b531</id>
<content type='text'>
Command line parsing is factored out into a function
parse_tag_command_line in tag-util.c.

There is some duplicated code eliminated in tag_query, and a bunch of
translation from using the bare tag_op structs to using that tag-utils
API.
</content>
</entry>
<entry>
<title>tag-util: factor out rules for illegal tags, use in parse_tag_line</title>
<updated>2013-01-07T02:57:41Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e13e2591470f849c86d410f50ec8103d2a5daf5b'/>
<id>urn:sha1:e13e2591470f849c86d410f50ec8103d2a5daf5b</id>
<content type='text'>
This will allow us to be consistent between batch tagging and command
line tagging as far as what is an illegal tag.
</content>
</entry>
<entry>
<title>dump/restore: Use Xapian queries for batch-tag format</title>
<updated>2013-01-07T02:40:32Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-01-06T20:22:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=425e2bc81263230df301c67d93c64ff9685ff840'/>
<id>urn:sha1:425e2bc81263230df301c67d93c64ff9685ff840</id>
<content type='text'>
This switches the new batch-tag format away from using a home-grown
hex-encoding scheme for message IDs in the dump to simply using Xapian
queries with Xapian quoting syntax.

This has a variety of advantages beyond presenting a cleaner and more
consistent interface.  Foremost is that it will dramatically simplify
the quoting for batch tagging, which shares the same input format.
While the hex-encoding is no better or worse for the simple ID queries
used by dump/restore, it becomes onerous for general-purpose queries
used in batch tagging.  It also better handles strange cases like
"id:foo and bar", since this is no longer syntactically valid.
</content>
</entry>
<entry>
<title>parse_tag_line: use enum for return value.</title>
<updated>2012-12-26T13:44:31Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-25T19:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1325e1afb9d93a26644803ec396ed2d87bf8b340'/>
<id>urn:sha1:1325e1afb9d93a26644803ec396ed2d87bf8b340</id>
<content type='text'>
This is essentially cosmetic, since success=0 is promised by
the comments in tag-utils.h.
</content>
</entry>
<entry>
<title>tag-utils: use the tag_opt_list_t as talloc context, if possible.</title>
<updated>2012-12-23T03:13:15Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-16T19:58:15Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ba4e8565294fc0a197b4c08082ad912c31888008'/>
<id>urn:sha1:ba4e8565294fc0a197b4c08082ad912c31888008</id>
<content type='text'>
The memory usage discipline of tag_op_list_t is never to free the
internal array of tag operations before freeing the whole list, so it
makes sense to take advantage of hierarchical de-allocation by talloc.

By not relying on the context passed into tag_parse_line, we can allow
tag_op_list_t structures to live longer than that context.
</content>
</entry>
</feed>
