<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/sprinter-json.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-08-12T19:25:01Z</updated>
<entry>
<title>sprinters: bugfix when NULL passed for a string.</title>
<updated>2012-08-12T19:25:01Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-08-08T21:23:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=94c3b40d41f1ad98719d411ef28b69075fda0579'/>
<id>urn:sha1:94c3b40d41f1ad98719d411ef28b69075fda0579</id>
<content type='text'>
The string function in a sprinter may be called with a NULL string
pointer (eg if a header is absent). This causes a segfault. We fix
this by checking for a null pointer in the string functions and update
the sprinter documentation.

At the moment some output when format=text is done directly rather than
via an sprinter: in that case a null pointer is passed to printf or
similar and a "(null)" appears in the output. That behaviour is not
changed in this patch.
</content>
</entry>
<entry>
<title>sprinter: Add a string_len method</title>
<updated>2012-08-03T23:21:29Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-08-03T01:14:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=14883b07003b9ed4223cd8f2c03b301fddae07bd'/>
<id>urn:sha1:14883b07003b9ed4223cd8f2c03b301fddae07bd</id>
<content type='text'>
This method allows callers to output strings with specific lengths.
It's useful both for strings with embedded NULs (which JSON can
represent, though parser support is apparently spotty), and
non-terminated strings.
</content>
</entry>
<entry>
<title>Add structured output formatter for JSON and plain text (but don't use them yet).</title>
<updated>2012-07-24T12:26:59Z</updated>
<author>
<name>craven@gmx.net</name>
<email>craven@gmx.net</email>
</author>
<published>2012-07-23T10:39:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=36522fca1cac6ca23c2c4c0280e3e20e96f7bfbb'/>
<id>urn:sha1:36522fca1cac6ca23c2c4c0280e3e20e96f7bfbb</id>
<content type='text'>
Using the new structured printer support in sprinter.h, implement
sprinter_json_create, which returns a new JSON structured output
formatter. The formatter prints output similar to the existing JSON, but
with differences in whitespace (mostly newlines, --output=summary prints
the entire message summary on one line, not split across multiple lines).

Also implement a "structured" formatter for plain text that prints
prefixed strings, to be used with notmuch-search.c plain text output.
</content>
</entry>
</feed>
