<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/message-file.c, branch 0.16_rc1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.16_rc1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.16_rc1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2012-12-24T23:02:05Z</updated>
<entry>
<title>lib/message-file.c: use g_malloc () &amp; g_free () in hash table values</title>
<updated>2012-12-24T23:02:05Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-12-21T17:52:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=27dacc7947309bb8f6f84b2cd83dc7ec280576b2'/>
<id>urn:sha1:27dacc7947309bb8f6f84b2cd83dc7ec280576b2</id>
<content type='text'>
The message-&gt;headers hash table values get data returned by
g_mime_utils_header_decode_text ().

The pointer returned by g_mime_utils_header_decode_text is from the
following line in rfc2047_decode_tokens

        return g_string_free (decoded, FALSE);

The docs for g_string_free say

 Frees the memory allocated for the GString. If free_segment is TRUE
 it also frees the character data. If it's FALSE, the caller gains
 ownership of the buffer and must free it after use with g_free().

The remaining frees and allocations referencing to message-&gt;headers hash
values have been changed to use g_free and g_malloc functions.

This combines and completes the changes started by David Bremner.
</content>
</entry>
<entry>
<title>Fix appending of Received headers</title>
<updated>2011-06-11T00:03:14Z</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@flamingspork.com</email>
</author>
<published>2011-05-17T02:10:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c86d77b16ad03903c6ccf9e5cd18f477f2e5bf63'/>
<id>urn:sha1:c86d77b16ad03903c6ccf9e5cd18f477f2e5bf63</id>
<content type='text'>
We're not properly concatenating the Received headers if we parse them
while requesting a header that isn't Received.

this fixes notmuch-reply address detection in a bunch of situations.
</content>
</entry>
<entry>
<title>lib/message-file: plug three memleaks.</title>
<updated>2011-06-03T19:30:55Z</updated>
<author>
<name>Anton Khirnov</name>
<email>anton@khirnov.net</email>
</author>
<published>2011-05-28T21:51:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d3fdb76c8d5e1535ead0086821775cf7809d6e1c'/>
<id>urn:sha1:d3fdb76c8d5e1535ead0086821775cf7809d6e1c</id>
<content type='text'>
Signed-off-by: Jameson Graef Rollins &lt;jrollins@finestructure.net&gt;
</content>
</entry>
<entry>
<title>Make Received: header special in notmuch_message_file_get_header</title>
<updated>2010-04-26T21:44:06Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>hohndel@infradead.org</email>
</author>
<published>2010-04-26T19:58:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5b8b0377cb68904eac8fc58a933d47f605a81725'/>
<id>urn:sha1:5b8b0377cb68904eac8fc58a933d47f605a81725</id>
<content type='text'>
With this patch the Received: header becomes special in the way
we treat headers - this is the only header for which we concatenate
all the instances we find (instead of just returning the first one).

This will be used in the From guessing code for replies as we need to
be able to walk ALL of the Received: headers in a message to have a
good chance to guess which mailbox this email was delivered to.

Signed-off-by: Dirk Hohndel &lt;hohndel@infradead.org&gt;
</content>
</entry>
<entry>
<title>fix notmuch_message_file_get_header</title>
<updated>2010-04-07T01:47:28Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>hohndel@infradead.org</email>
</author>
<published>2010-04-06T19:45:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a48f3687785b2c138b2c47848bd05512fc893a0b'/>
<id>urn:sha1:a48f3687785b2c138b2c47848bd05512fc893a0b</id>
<content type='text'>
fix notmuch_message_file_get_header to always return the first instance
 of the header you are looking for

Signed-off-by: Dirk Hohndel &lt;hohndel@infradead.org&gt;
</content>
</entry>
<entry>
<title>message_file_get_header: Use break where more clear than continue.</title>
<updated>2009-11-18T02:37:45Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2009-11-18T02:37:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8cf72920e11c950fe7ae76cb762f79506aa8acfe'/>
<id>urn:sha1:8cf72920e11c950fe7ae76cb762f79506aa8acfe</id>
<content type='text'>
Calling continue here worked only because we set a flag before the
continue, and, check the flag at the beginning of the loop, and *then*
break. It's much more clear to just break in the first place.
</content>
</entry>
<entry>
<title>Close message file after parsing message headers</title>
<updated>2009-11-17T16:53:16Z</updated>
<author>
<name>Mikhail Gusarov</name>
<email>dottedmag@dottedmag.net</email>
</author>
<published>2009-11-17T15:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=dc5a9d8eb2c3d120fb9bf8fa9f0f22764a169b77'/>
<id>urn:sha1:dc5a9d8eb2c3d120fb9bf8fa9f0f22764a169b77</id>
<content type='text'>
Keeping unused files open helps to see "Too many open files" often.

Signed-off-by: Mikhail Gusarov &lt;dottedmag@dottedmag.net&gt;
</content>
</entry>
<entry>
<title>notmuch show: Avoid segmentation for message with no subject.</title>
<updated>2009-11-12T07:00:58Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2009-11-12T07:00:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=091d18c54c046a08bda9d88982601589a1deea37'/>
<id>urn:sha1:091d18c54c046a08bda9d88982601589a1deea37</id>
<content type='text'>
It's safer to return an empty string rather than NULL for missing
header values.
</content>
</entry>
<entry>
<title>libify: Move library sources down into lib directory.</title>
<updated>2009-11-10T00:24:03Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2009-11-10T00:12:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=146549321044615d9aef2b30cedccda9c49f3f38'/>
<id>urn:sha1:146549321044615d9aef2b30cedccda9c49f3f38</id>
<content type='text'>
A "make" invocation still works from the top-level, but not from
down inside the lib directory yet.
</content>
</entry>
</feed>
