<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/notmuch.c, branch 0.15</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.15</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.15'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2012-12-31T01:12:03Z</updated>
<entry>
<title>CLI: add talloc leak report, controlled by an environment variable.</title>
<updated>2012-12-31T01:12:03Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-12-17T03:08:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3380498042ffe830476bf12e75075cd826b10c4b'/>
<id>urn:sha1:3380498042ffe830476bf12e75075cd826b10c4b</id>
<content type='text'>
The argument handling in notmuch.c seems due for an overhaul, but
until then use an environment variable to specify a location to write
the talloc leak report to.  This is only enabled for the (interesting)
case where some notmuch subcommand is invoked.
</content>
</entry>
<entry>
<title>cli: Framework for structured output versioning</title>
<updated>2012-12-16T21:20:33Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-16T03:17:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1c6195b9e35e511e115f94b45d97aa58ee41b307'/>
<id>urn:sha1:1c6195b9e35e511e115f94b45d97aa58ee41b307</id>
<content type='text'>
Currently there is a period of pain whenever we make
backward-incompatible changes to the structured output format, which
discourages not only backward-incompatible improvements to the format,
but also backwards-compatible additions that may not be "perfect".  In
the end, these problems limit experimentation and innovation.

This series of patches introduces a way for CLI callers to request a
specific format version on the command line and to determine if the
CLI does not supported the requested version (and perhaps present a
useful diagnostic to the user).  Since the caller requests a format
version, it's also possible for the CLI to support multiple
incompatible versions simultaneously, unlike the alternate approach of
including version information in the output.

This patch lays the groundwork by introducing a versioning convention,
standard exit codes, and a utility function to check the requested
version and produce standardized diagnostic messages and exit
statuses.
</content>
</entry>
<entry>
<title>cli: fix notmuch top level argument parsing</title>
<updated>2012-12-04T13:10:19Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-12-03T20:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8ce50f300fd94dc999ea39eef1ac64e466ebdd0e'/>
<id>urn:sha1:8ce50f300fd94dc999ea39eef1ac64e466ebdd0e</id>
<content type='text'>
Use strcmp instead of STRNCMP_LITERAL, which matches the prefix
instead of the whole argument.
</content>
</entry>
<entry>
<title>notmuch: replace built-in help with exec of man</title>
<updated>2011-12-31T19:16:32Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-12-22T01:45:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=07768fb1bb50e3ee1bad9b45987e7c68e205c2dc'/>
<id>urn:sha1:07768fb1bb50e3ee1bad9b45987e7c68e205c2dc</id>
<content type='text'>
"notmuch help" now relies on a working man installation, and a correct
setting of MANPATH, for users that install in "unusual" places. This
should probably noted in NEWS before shipping.

There is still some small duplication of docs as the one line
summaries are hard coded in the binary. This seems preferable to
complicated script games, at least as long was we are using a
presentation level markup like nroff.
</content>
</entry>
<entry>
<title>cli: add support for pre and post notmuch new hooks</title>
<updated>2011-12-11T17:58:15Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2011-12-08T22:48:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=69bb7f35b6e59fd3a3b1fb2d0f0367f7016cba80'/>
<id>urn:sha1:69bb7f35b6e59fd3a3b1fb2d0f0367f7016cba80</id>
<content type='text'>
Run notmuch new pre and post hooks, named "pre-new" and "post-new", if
present in the notmuch hooks directory. The hooks will be run before and
after incorporating new messages to the database.

Typical use cases for pre-new and post-new hooks are fetching or delivering
new mail to the maildir, and custom tagging of the mail incorporated to the
database.

Also add command line option --no-hooks to notmuch new to bypass the hooks.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<entry>
<title>CLI: update call to notmuch_help_command for new calling conventions.</title>
<updated>2011-11-25T17:07:10Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-11-24T20:02:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=879c2a57a07edd7a10bf1ef277aeb6a57fc9e300'/>
<id>urn:sha1:879c2a57a07edd7a10bf1ef277aeb6a57fc9e300</id>
<content type='text'>
When I changed the calling convention to pass in all but the zero-th
argument to subcommands, I missed this one call, resulting in a
segmentation fault.

As a bonus, the syntax "notmuch --help foo" is now equivalent to
"notmuch help foo".
</content>
</entry>
<entry>
<title>cli: add support for --output parameter in notmuch count</title>
<updated>2011-11-15T23:20:27Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2011-11-15T20:08:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=386ad3d6a1a4aff086a87c04c225aba4fa85fb4c'/>
<id>urn:sha1:386ad3d6a1a4aff086a87c04c225aba4fa85fb4c</id>
<content type='text'>
Add support for --output=messages (which remains the default) and
--output=threads to notmuch count.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<entry>
<title>cli: add options --offset and --limit to notmuch search</title>
<updated>2011-11-15T23:17:24Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2011-11-15T20:08:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=796b629c3b821986c1f8d9a9e6f952a1df1034f0'/>
<id>urn:sha1:796b629c3b821986c1f8d9a9e6f952a1df1034f0</id>
<content type='text'>
Add options --offset=[-]N and --limit=M to notmuch search to determine the
first result and maximum number of results to display.

Option --limit=M limits the maximum number of results to display to M.

Option --offset=[-]N skips the first N results; with the leading '-' skip
until the Nth result from the end.

Note that --offset with a negative N for thread or summary output requires
counting the number of matching threads in advance.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<entry>
<title>docs: Update news, man page, and online help for restore --accumulate</title>
<updated>2011-10-23T13:27:57Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-10-21T22:09:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3ae8ac6ace7c05ba066aba54a92054eb4232a99d'/>
<id>urn:sha1:3ae8ac6ace7c05ba066aba54a92054eb4232a99d</id>
<content type='text'>
As a side effect, reformat the NEWs entry for notmuch dump for
consistency with the notmuch restore NEWS submitted by Thomas
Schwinge.
</content>
</entry>
<entry>
<title>cli: change argument parsing convention for subcommands</title>
<updated>2011-10-22T22:42:54Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-10-21T12:19:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=61f0a5b8ee2adf540106a09c5f83fe634da6beb3'/>
<id>urn:sha1:61f0a5b8ee2adf540106a09c5f83fe634da6beb3</id>
<content type='text'>
previously we deleted the subcommand name from argv before passing to
the subcommand. In this version, the deletion is done in the actual
subcommands. Although this causes some duplication of code, it allows
us to be more flexible about how we parse command line arguments in
the subcommand, including possibly using off-the-shelf routines like
getopt_long that expect the name of the command in argv[0].
</content>
</entry>
</feed>
