<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/notmuch-tag.c, branch 0.15.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.15.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.15.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-01-14T23:47:14Z</updated>
<entry>
<title>cli: propagate batch tagging warnings to exit value</title>
<updated>2013-01-14T23:47:14Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2013-01-12T07:40:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4b5b6f02cc943b83270ad5061166e5d9967b2899'/>
<id>urn:sha1:4b5b6f02cc943b83270ad5061166e5d9967b2899</id>
<content type='text'>
In case last input for batch tagging was either invalid or skippable
line, notmuch command exited with non-zero value.
After this change if there is at least one invalid line, notmuch
command will exit with non-zero value. Additionally, skipped lines
(last or other) doesn't cause non-zero value to be returned.
</content>
</entry>
<entry>
<title>cli: bail out and propagate tagging errors in notmuch tag</title>
<updated>2013-01-10T03:08:48Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-01-08T21:41:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4e9fe60422d9092737550bd8a3b8525ee2a20daf'/>
<id>urn:sha1:4e9fe60422d9092737550bd8a3b8525ee2a20daf</id>
<content type='text'>
Checking and propagating tag_op_list_apply() errors is especially
important with batch tagging, as the processing of the batch input
would not stop otherwise. Additionally this sets the exit code, which
is useful in scripts.

Amended by: David Bremner
</content>
</entry>
<entry>
<title>cli: add support for batch tagging operations to "notmuch tag"</title>
<updated>2013-01-08T00:48:54Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-12-25T19:42:40Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3f9cc3d082b812d2c96a2326786501056cd4caca'/>
<id>urn:sha1:3f9cc3d082b812d2c96a2326786501056cd4caca</id>
<content type='text'>
Add support for batch tagging operations through stdin to "notmuch
tag". This can be enabled with the new --batch command line option to
"notmuch tag". The input must consist of lines of the format:

+&lt;tag&gt;|-&lt;tag&gt; [...] [--] &lt;query&gt; [...]

Each line is interpreted similarly to "notmuch tag" command line
arguments. The delimiter is one or more spaces ' '. Any characters in
&lt;tag&gt; MAY be hex encoded with %NN where NN is the hexadecimal value of
the character. Any ' ' and '%' characters in &lt;tag&gt; and MUST be hex
encoded (using %20 and %25, respectively). For future-proofing, any
'"' characters in &lt;tag&gt; SHOULD be hex-encoded.

Any characters that are not part of &lt;tag&gt; or
MUST NOT be hex encoded.

&lt;query&gt; is passed verbatim to Xapian

Leading and trailing space ' ' is ignored. Empty lines and lines
beginning with '#' are ignored.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;

Hacked-like-crazy-by: David Bremner &lt;david@tethera.net&gt;
</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>util: Factor out boolean term quoting routine</title>
<updated>2013-01-07T02:39:36Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-01-06T20:22:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=25cf5f5dc45cac42f15643f6df09b46d51d7b5ec'/>
<id>urn:sha1:25cf5f5dc45cac42f15643f6df09b46d51d7b5ec</id>
<content type='text'>
This is now a generic boolean term quoting function.  It performs
minimal quoting to produce user-friendly queries.

This could live in tag-util as well, but it is really nothing specific
to tags (although the conventions are specific to Xapian).

The API is changed from "caller-allocates" to "readline-like".  The
scan for max tag length is pushed down into the quoting routine.
Furthermore, this now combines the term prefix with the quoted term;
arguably this is just as easy to do in the caller, but this will
nicely parallel the boolean term parsing function to be introduced
shortly.

This is an amalgamation of code written by David Bremner and myself.
</content>
</entry>
<entry>
<title>notmuch-tag: tidy formatting</title>
<updated>2012-11-16T12:45:39Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-11-15T01:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=127c788e452bab2afee7f79cac02b889d7c92f56'/>
<id>urn:sha1:127c788e452bab2afee7f79cac02b889d7c92f56</id>
<content type='text'>
This is just the result of running uncrustify.
</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>lib/cli: Make notmuch_database_open return a status code</title>
<updated>2012-05-05T13:11:57Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-04-30T16:25:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5fddc07dc31481453c1af186bf7da241c00cdbf1'/>
<id>urn:sha1:5fddc07dc31481453c1af186bf7da241c00cdbf1</id>
<content type='text'>
It has been a long-standing issue that notmuch_database_open doesn't
return any indication of why it failed.  This patch changes its
prototype to return a notmuch_status_t and set an out-argument to the
database itself, like other functions that return both a status and an
object.

In the interest of atomicity, this also updates every use in the CLI
so that notmuch still compiles.  Since this patch does not update the
bindings, the Python bindings test fails.
</content>
</entry>
<entry>
<title>Use notmuch_database_destroy instead of notmuch_database_close</title>
<updated>2012-04-28T12:27:33Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2012-04-22T12:07:53Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6f7469f54744656f90ce215f365d5731e16acd3c'/>
<id>urn:sha1:6f7469f54744656f90ce215f365d5731e16acd3c</id>
<content type='text'>
Adapt the notmuch binaries source to the notmuch_database_close split.

Signed-off-by: Justus Winter &lt;4winter@informatik.uni-hamburg.de&gt;
</content>
</entry>
<entry>
<title>cli: refactor "notmuch tag" query tagging into a separate function</title>
<updated>2012-03-31T00:22:31Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-03-26T21:04:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9605e62099b8c5d9e1debc27b31ae1e256703a3b'/>
<id>urn:sha1:9605e62099b8c5d9e1debc27b31ae1e256703a3b</id>
<content type='text'>
Refactor to make tagging code easier to reuse in the future. No
functional changes.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
</feed>
