<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib, branch debian/0.31.2-2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.31.2-2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.31.2-2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2020-10-30T00:13:01Z</updated>
<entry>
<title>lib/config: don't set destructor until iterator is initialized.</title>
<updated>2020-10-30T00:13:01Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-10-30T00:13:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=582e919e2769bd99064b997b05e1601ffcfe9a98'/>
<id>urn:sha1:582e919e2769bd99064b997b05e1601ffcfe9a98</id>
<content type='text'>
As diagnosed by Olivier Taïbi in
id:20201027100916.emry3k2wujod4xnl@galois.lan, if an exception is
thrown while the initialization is happening (e.g. if the function is
called on a closed database), then the destructor is (sometimes)
invoked on an uninitialized Xapian object.

Solve the problem by moving the setting of the destructor until after
the placement new successfully completes. It is conceivable this might
cause a memory leak, but that seems preferable to crashing, and in any
case, there seems to be nothing better to be done if the
initialization is failing things are in an undefined state by
definition.
</content>
</entry>
<entry>
<title>Fix typos</title>
<updated>2020-08-10T00:14:36Z</updated>
<author>
<name>Jonas Bernoulli</name>
<email>jonas@bernoul.li</email>
</author>
<published>2020-08-08T11:49:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6c84dee53193a78cf797b44d3febcc14488ea6b1'/>
<id>urn:sha1:6c84dee53193a78cf797b44d3febcc14488ea6b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>emacs: Use makefile-gmake-mode in Makefile*s</title>
<updated>2020-08-10T00:14:36Z</updated>
<author>
<name>Jonas Bernoulli</name>
<email>jonas@bernoul.li</email>
</author>
<published>2020-08-08T11:49:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c4541353765dec837c1c2f912b1bf6661827429c'/>
<id>urn:sha1:c4541353765dec837c1c2f912b1bf6661827429c</id>
<content type='text'>
Use `makefile-gmake-mode' instead of `makefile-mode' because the
former also highlights ifdef et al. while the latter does not.

"./Makefile.global" and one "Makefile.local" failed to specify any
major mode at all but doing so is necessary because Emacs does not
automatically figure out that these are Makefiles (of any flavor).
</content>
</entry>
<entry>
<title>test: regression test for traversing config list with closed db</title>
<updated>2020-08-04T00:03:43Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-01T12:26:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e3f88436b7850ac04468416223e136eaaca4aee3'/>
<id>urn:sha1:e3f88436b7850ac04468416223e136eaaca4aee3</id>
<content type='text'>
Also mention error return in API docs
</content>
</entry>
<entry>
<title>lib: fix return value for n_directory_delete</title>
<updated>2020-08-03T23:59:06Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-01T12:25:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f4f5db0f1a6e89f56bfd73f8517c1cac7af20290'/>
<id>urn:sha1:f4f5db0f1a6e89f56bfd73f8517c1cac7af20290</id>
<content type='text'>
Falling out of the catch meant the error return was lost
</content>
</entry>
<entry>
<title>lib: catch exceptions in n_directory_get_child_files</title>
<updated>2020-08-03T23:56:09Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-01T12:25:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=337665e26a4f0bb0e24a9160f45faf444032bf5d'/>
<id>urn:sha1:337665e26a4f0bb0e24a9160f45faf444032bf5d</id>
<content type='text'>
Also clarify API in error case.
</content>
</entry>
<entry>
<title>lib: catch exceptions in n_directory_get_child_directories</title>
<updated>2020-08-03T23:53:04Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-01T12:25:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9668583a49e9fe2e39844ceaab20779c9444ba8f'/>
<id>urn:sha1:9668583a49e9fe2e39844ceaab20779c9444ba8f</id>
<content type='text'>
Also clarify API in error case.
</content>
</entry>
<entry>
<title>lib: return NULL from n_d_get_default_indexopts on error</title>
<updated>2020-08-03T23:45:58Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-01T12:25:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=31dab9b1cd66c7f285fe86021f66940f679325d4'/>
<id>urn:sha1:31dab9b1cd66c7f285fe86021f66940f679325d4</id>
<content type='text'>
This is a rare and probably serious programming error, so better not
to silently return a default value.
</content>
</entry>
<entry>
<title>lib: replace use of static_cast for writable databases</title>
<updated>2020-07-28T11:47:58Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-07-26T23:31:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a09293793f43b93b7008dd361b192199ad528fca'/>
<id>urn:sha1:a09293793f43b93b7008dd361b192199ad528fca</id>
<content type='text'>
static_cast is a bit tricky to understand and error prone, so add a
second pointer to (potentially the same) Xapian database object that
we know has the right subclass.
</content>
</entry>
<entry>
<title>lib: encapsulate the use of notmuch_database_t field 'mode'</title>
<updated>2020-07-28T11:47:58Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-07-26T23:31:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d7d4c729ab3b74eaaebe64cb8c7383b0ea06cec0'/>
<id>urn:sha1:d7d4c729ab3b74eaaebe64cb8c7383b0ea06cec0</id>
<content type='text'>
The plan is to change the underlying representation.
</content>
</entry>
</feed>
