<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/json.c, branch 0.6.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.6.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.6.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2010-04-20T15:55:31Z</updated>
<entry>
<title>json_quote_chararray: Always return a newly talloced array</title>
<updated>2010-04-20T15:55:31Z</updated>
<author>
<name>Anthony</name>
<email>aj@erisian.com.au</email>
</author>
<published>2010-04-20T15:55:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=55d06f3e0bc12c27879bba98153d70ea399ec737'/>
<id>urn:sha1:55d06f3e0bc12c27879bba98153d70ea399ec737</id>
<content type='text'>
The special case for len==0 was wrong---the normal code path is to
talloc to get a newly allocated, editable string, that might be
talloc_free'd later. It makes more sense just to let the len==0
behaviour fall through into the normal case code.

Reviewed-by: Carl Worth &lt;cworth@cworth.org&gt;
This results in the same value being returned, but with the proper
memory handling.
</content>
</entry>
<entry>
<title>json: Avoid calling strlen(NULL)</title>
<updated>2010-04-20T15:54:51Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2010-04-06T07:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=cacefbf3d6dd5bce0b60b3cdfce29bfa371dfaea'/>
<id>urn:sha1:cacefbf3d6dd5bce0b60b3cdfce29bfa371dfaea</id>
<content type='text'>
MIME parts may have no filename, which previously resulted in calling
strlen(NULL).
</content>
</entry>
<entry>
<title>Fix json_quote_str to handle non-ASCII characters</title>
<updated>2010-04-13T15:30:40Z</updated>
<author>
<name>Gregor Hoffleit</name>
<email>gregor@hoffleit.de</email>
</author>
<published>2010-03-04T10:40:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4a442846926f7e3d1b30b7afac59dd1def0e5a41'/>
<id>urn:sha1:4a442846926f7e3d1b30b7afac59dd1def0e5a41</id>
<content type='text'>
The current code in json_quote_str() only accepts strict printable ASCII
code points (i.e. 32-127), all other code points are dropped from the
JSON output. The code is attempting to drop only non-printable ASCII
characters, but doing a signed comparison of the byte value is also
dropping characters with values &gt;= 128.

This patch uses an unsigned comparison to accept code points 32-255.

Reviewed-by: Carl Worth &lt;cworth@cworth.org&gt; (with some additional
details for commit message).
</content>
</entry>
<entry>
<title>notmuch: Correctly terminate text/* parts in JSON output</title>
<updated>2010-04-05T17:57:23Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2010-04-05T09:33:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9eb360329929258fb243cfb5095989ba45391109'/>
<id>urn:sha1:9eb360329929258fb243cfb5095989ba45391109</id>
<content type='text'>
Text parts returned by `g_mime_stream_mem_get_byte_array()' are not
NULL terminated strings - add `json_quote_chararray()' to handle them
correctly.
</content>
</entry>
<entry>
<title>json: Add copy of MIT license text from cJSON</title>
<updated>2010-02-23T20:50:46Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-02-23T20:49:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=cfa95eec27b3002b22bb7e1734b90fbbbff2c284'/>
<id>urn:sha1:cfa95eec27b3002b22bb7e1734b90fbbbff2c284</id>
<content type='text'>
When we incorporate external code, we should include its license,
(particularly when one of the terms of the license is to include it in
copies).
</content>
</entry>
<entry>
<title>Add an "--format=(json|text)" command-line option to both notmuch-search and notmuch-show.</title>
<updated>2010-02-23T20:01:12Z</updated>
<author>
<name>Scott Robinson</name>
<email>scott@quadhome.com</email>
</author>
<published>2009-12-31T15:17:40Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6ce2bf68f53fec4302121763e588c33c7cd86a9c'/>
<id>urn:sha1:6ce2bf68f53fec4302121763e588c33c7cd86a9c</id>
<content type='text'>
In the case of notmuch-show, "--format=json" also implies
"--entire-thread" as the thread structure is implicit in the emitted
document tree.

As a coincidence to the implementation, multipart message ID numbers are
now incremented with each part printed. This changes the previous
semantics, which were unclear and not necessary related to the actual
ordering of the message parts.
</content>
</entry>
</feed>
