<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/open.cc, branch 0.37</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.37</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.37'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2022-01-15T19:53:31Z</updated>
<entry>
<title>lib/open: use notmuch-&gt;params to track split status</title>
<updated>2022-01-15T19:53:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-25T13:33:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=63b4c469835133ac44b7db516fc54b8a4abb90a8'/>
<id>urn:sha1:63b4c469835133ac44b7db516fc54b8a4abb90a8</id>
<content type='text'>
Persisting this status will allow us to use the information in other
compilation units, in particular when setting configuration defaults.
</content>
</entry>
<entry>
<title>lib/open: use db struct as talloc ctx for choose_database_path</title>
<updated>2022-01-15T19:51:33Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-25T13:33:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fd0edeb561e5593d8a834fcc74602b2d8c637123'/>
<id>urn:sha1:fd0edeb561e5593d8a834fcc74602b2d8c637123</id>
<content type='text'>
The extra talloc struct "local" was left over from before the notmuch
struct was allocated earlier. Having the notmuch struct available in
this function will allow more flexibility to track the configuration
variations (e.g. split vs. non-split).
</content>
</entry>
<entry>
<title>Merge branch 'release'</title>
<updated>2021-12-29T18:20:49Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-29T18:20:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3eb25c94bd8fe4065d6df6d665ee393cb9a0ad6f'/>
<id>urn:sha1:3eb25c94bd8fe4065d6df6d665ee393cb9a0ad6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/open: do not consider .notmuch alone as an existing database.</title>
<updated>2021-12-29T18:11:21Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-25T21:22:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=25e0f5e59293ce961549201fdc74f81a3cc1675c'/>
<id>urn:sha1:25e0f5e59293ce961549201fdc74f81a3cc1675c</id>
<content type='text'>
It makes perfect sense for users to want to pre-create .notmuch,
e.g. to install hooks, so we should handle the case of a .notmuch
directory without an actual xapian database more gracefully.
</content>
</entry>
<entry>
<title>lib/config: use g_key_file_get_string to read config values</title>
<updated>2021-12-04T16:17:09Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-09-30T18:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=18cdd21b8b2ef056062700607eade43909c32cd2'/>
<id>urn:sha1:18cdd21b8b2ef056062700607eade43909c32cd2</id>
<content type='text'>
Unlike the previous g_key_file_get_value, this version processes
escape codes for whitespace and \. The remaining two broken tests from
the last commit are because "notmuch config get" treats every value as
a list, and thus the previously introduces stripping of leading
whitespace applies.
</content>
</entry>
<entry>
<title>Merge branch 'release'</title>
<updated>2021-12-04T13:27:30Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-04T13:27:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1e7d33961e626488b09b56c8543e8edf00648670'/>
<id>urn:sha1:1e7d33961e626488b09b56c8543e8edf00648670</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/open: track which parameters are passed</title>
<updated>2021-12-04T00:50:03Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-28T01:34:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d467444085d96229172ce29ef8654c3c459b6ce2'/>
<id>urn:sha1:d467444085d96229172ce29ef8654c3c459b6ce2</id>
<content type='text'>
This will be used to fine tune the loading of configuration for
certain special configuration items (initially just "database.path").
</content>
</entry>
<entry>
<title>lib/open: replace call to deprecated notmuch_database_open_verbose</title>
<updated>2021-10-30T18:04:28Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-23T12:27:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=efbf5bafaf15cc99e272bd75e71688c96130d9d5'/>
<id>urn:sha1:efbf5bafaf15cc99e272bd75e71688c96130d9d5</id>
<content type='text'>
Essentially inline the existing shim definition of
notmuch_database_open_verbose.
</content>
</entry>
<entry>
<title>lib/load_config: deallocate / NULL database on fatal error</title>
<updated>2021-10-30T16:51:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-23T13:22:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fe51c275fcd7107d92b40de511086300ba4060ed'/>
<id>urn:sha1:fe51c275fcd7107d92b40de511086300ba4060ed</id>
<content type='text'>
This fixes a potential memory leak, and makes the behaviour of
notmuch_database_load_config (somewhat) consistent with
n_d_{open,create} with config.
</content>
</entry>
<entry>
<title>lib/create: fix memory leak, ensure *database=NULL on error</title>
<updated>2021-10-30T16:47:47Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-23T13:22:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2ba50b52302dce08068843e0029f9ee935a0d7f3'/>
<id>urn:sha1:2ba50b52302dce08068843e0029f9ee935a0d7f3</id>
<content type='text'>
This code previously relied on _finish_open to free the notmuch struct
on errors (except for the case of database == NULL, which was a
potential double free). When we removed those frees from _finish_open,
we introduced a (small) memory leak.

In this commit, fix the memory leak, and harmonize the on-error
behaviour with n_d_open_with_config.
</content>
</entry>
</feed>
