<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/message.cc, branch debian/0.25_rc0-2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.25_rc0-2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.25_rc0-2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2017-07-15T00:23:52Z</updated>
<entry>
<title>lib: wrap use of g_mime_utils_header_decode_date</title>
<updated>2017-07-15T00:23:52Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-05-17T01:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c040464a7c8f339d15f691113b8f5fd901229bcb'/>
<id>urn:sha1:c040464a7c8f339d15f691113b8f5fd901229bcb</id>
<content type='text'>
This changes return type in gmime 3.0
</content>
</entry>
<entry>
<title>build: visibility=default for library structs is no longer needed</title>
<updated>2017-05-13T11:38:18Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-05-10T19:42:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=30c475c1ef3d6823ed9ab0affc30328726c5240f'/>
<id>urn:sha1:30c475c1ef3d6823ed9ab0affc30328726c5240f</id>
<content type='text'>
Commit d5523ead90b6 ("Mark some structures in the library interface
with visibility=default attribute.") fixed some mixed visibility
issues with structs. With the symbol default visibility reversed, this
is no longer a problem.
</content>
</entry>
<entry>
<title>Replace index(3) with strchr(3)</title>
<updated>2017-04-20T09:59:22Z</updated>
<author>
<name>Fredrik Fornwall</name>
<email>fredrik@fornwall.net</email>
</author>
<published>2017-04-06T23:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e56511817284afc14352f47a13fcf85b2fabd628'/>
<id>urn:sha1:e56511817284afc14352f47a13fcf85b2fabd628</id>
<content type='text'>
The index(3) function has been deprecated in POSIX since 2001 and
removed in 2008, and most code in notmuch already calls strchr(3).

This fixes a compilation error on Android whose libc does not have
index(3).
</content>
</entry>
<entry>
<title>lib: replace deprecated n_q_count_messages with status returning version</title>
<updated>2017-03-22T11:35:07Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-02-26T21:21:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5ce8e0b11b40f733e6231d2067764e76717a341a'/>
<id>urn:sha1:5ce8e0b11b40f733e6231d2067764e76717a341a</id>
<content type='text'>
This function was deprecated in notmuch 0.21.  We re-use the name for
a status returning version, and deprecate the _st name. One or two
remaining uses of the (removed) non-status returning version fixed at
the same time
</content>
</entry>
<entry>
<title>Merge branch 'release'</title>
<updated>2017-03-19T00:02:42Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-03-19T00:02:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a8a270522231b186493ecd97d56a1343382d51d8'/>
<id>urn:sha1:a8a270522231b186493ecd97d56a1343382d51d8</id>
<content type='text'>
Merge in memory fixes
</content>
</entry>
<entry>
<title>lib/message.cc: fix Coverity finding (use after free)</title>
<updated>2017-03-18T23:59:46Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2017-03-17T22:28:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=06adc276682d1d5f73d78df2e898ad4191eb4499'/>
<id>urn:sha1:06adc276682d1d5f73d78df2e898ad4191eb4499</id>
<content type='text'>
The object where pointer to `data` was received was deleted before
it was used in _notmuch_string_list_append().

Relevant Coverity messages follow:

3: extract
Assigning: data = std::__cxx11::string(message-&gt;doc.()).c_str(),
which extracts wrapped state from temporary of type std::__cxx11::string.

4: dtor_free
The internal representation of temporary of type std::__cxx11::string
is freed by its destructor.

5: use after free:
Wrapper object use after free (WRAPPER_ESCAPE)
Using internal representation of destroyed object local data.
</content>
</entry>
<entry>
<title>lib: clamp return value of g_mime_utils_header_decode_date to &gt;=0</title>
<updated>2017-03-16T00:58:25Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-03-12T12:51:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=62822a4e2dee695c486383f0fe3d90edafae24db'/>
<id>urn:sha1:62822a4e2dee695c486383f0fe3d90edafae24db</id>
<content type='text'>
For reasons not completely understood at this time, gmime (as of
2.6.22) is returning a date before 1900 on bad date input. Since this
confuses some other software, we clamp such dates to 0,
i.e. 1970-01-01.
</content>
</entry>
<entry>
<title>lib/message.cc: use view number to invalidate cached metadata</title>
<updated>2017-02-26T01:15:38Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-02-24T18:33:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7bd63833bfbaff88fdf4d3cd2809ce68e8e0f976'/>
<id>urn:sha1:7bd63833bfbaff88fdf4d3cd2809ce68e8e0f976</id>
<content type='text'>
Currently the view number is incremented by notmuch_database_reopen
</content>
</entry>
<entry>
<title>lib: handle DatabaseModifiedError in _n_message_ensure_metadata</title>
<updated>2017-02-26T01:13:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-02-18T01:28:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e0b22c139c0a9cd2b7dc5afb96e4ccec4f6b1641'/>
<id>urn:sha1:e0b22c139c0a9cd2b7dc5afb96e4ccec4f6b1641</id>
<content type='text'>
The retries are hardcoded to a small number, and error handling aborts
than propagating errors from notmuch_database_reopen. These are both
somewhat justified by the assumption that most things that can go
wrong in Xapian::Database::reopen are rare and fatal. Here's the brief
discussion with Xapian upstream:

   24-02-2017 08:12:57 &lt; bremner&gt; any intuition about how likely
      Xapian::Database::reopen is to fail? I'm catching a
      DatabaseModifiedError somewhere where handling any further errors is
      tricky, and wondering about treating a failed reopen as as "the
      impossible happened, stopping"

   24-02-2017 16:22:34 &lt; olly&gt; bremner: there should not be much scope for
    failure - stuff like out of memory or disk errors, which are probably a
    good enough excuse to stop
</content>
</entry>
<entry>
<title>lib: make _notmuch_message_ensure_property_map static</title>
<updated>2017-02-23T12:54:36Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-02-18T14:45:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=884dccf2939ea0aa6a23dab064676dc650c28c65'/>
<id>urn:sha1:884dccf2939ea0aa6a23dab064676dc650c28c65</id>
<content type='text'>
It's not called outside message.cc
</content>
</entry>
</feed>
