<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/config.cc, branch 0.32.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.32.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.32.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-05-10T14:12:58Z</updated>
<entry>
<title>lib/config: expand relative paths when reading from database</title>
<updated>2021-05-10T14:12:58Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-07T10:27:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1040e7aa077197e5295180ef54576ea39c298a36'/>
<id>urn:sha1:1040e7aa077197e5295180ef54576ea39c298a36</id>
<content type='text'>
This makes the treatment of relative paths consistent between the
database and config files.
</content>
</entry>
<entry>
<title>lib/config: canonicalize paths relative to $HOME.</title>
<updated>2021-05-10T14:08:18Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-07T00:16:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=31098c4ae40511ffda9788a6654adbf898063d7f'/>
<id>urn:sha1:31098c4ae40511ffda9788a6654adbf898063d7f</id>
<content type='text'>
Prior to 0.32, notmuch had the (undocumented) behaviour that it
expanded a relative value of database.path with respect to $HOME. In
0.32 this was special cased for database.path but broken for
database.mail_root, which causes problems for at least notmuch-new
when database.path is set to a relative path.

The change in T030-config.sh reflects a user visible, but hopefully
harmless behaviour change; the expanded form of the paths will now be
printed by notmuch config.
</content>
</entry>
<entry>
<title>lib/config: remove early free in _get_email_from_passwd_file</title>
<updated>2021-04-24T15:11:45Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-04-24T13:44:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5f80e106d6f6e695677527b509164a6e5194abd1'/>
<id>urn:sha1:5f80e106d6f6e695677527b509164a6e5194abd1</id>
<content type='text'>
This (obvious) bug was caused by cut&amp;pasting the code from
notmuch-config.c into the library and adding on a return at the end.
</content>
</entry>
<entry>
<title>lib: provide notmuch_config_path</title>
<updated>2021-03-27T12:26:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-21T11:34:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f5d4349921ded021756d6754d347420e68b23111'/>
<id>urn:sha1:f5d4349921ded021756d6754d347420e68b23111</id>
<content type='text'>
Since the library searches in several locations for a config file, the
caller does not know which of these is chosen in the usual case of
passing NULL as a config file. This changes provides an API for the
caller to retrieve the name of the config file chosen. It will be
tested in a following commit.
</content>
</entry>
<entry>
<title>CLI/config: migrate notmuch_config_open to new config</title>
<updated>2021-03-27T12:26:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-14T13:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b76da87d29b6c9714e3d62fd8d459733df084f92'/>
<id>urn:sha1:b76da87d29b6c9714e3d62fd8d459733df084f92</id>
<content type='text'>
notmuch_config_open will be preserved in the medium term for use by
the commands that are manipulating the config file directly (config
and setup)
</content>
</entry>
<entry>
<title>lib/config: set default for primary user email</title>
<updated>2021-03-27T12:26:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-14T13:55:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2e9ee47072e161e85d2ac60515d1c922ea881e40'/>
<id>urn:sha1:2e9ee47072e161e85d2ac60515d1c922ea881e40</id>
<content type='text'>
This is mainly copying code from the CLI into the lib. The CLI copy
will be deleted in a later commit.
</content>
</entry>
<entry>
<title>lib/config: set defaults for user full name</title>
<updated>2021-03-27T12:26:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-14T13:23:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e81dc2072f22996a07e82b9b9b2eac826410e5a7'/>
<id>urn:sha1:e81dc2072f22996a07e82b9b9b2eac826410e5a7</id>
<content type='text'>
This just copies code from from the CLI into the library. New test
infrastructure is needed because apparently we have never tested this
code path.
</content>
</entry>
<entry>
<title>lib/config: add config_pairs iterators</title>
<updated>2021-03-27T12:26:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-14T11:42:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=863b2431853385441f9fcbc22b9ff4e963091440'/>
<id>urn:sha1:863b2431853385441f9fcbc22b9ff4e963091440</id>
<content type='text'>
The layer of shims here seems a bit wasteful compared to just calling
the corresponding string map functions directly, but it allows control
over the API (calling with notmuch_database_t *) and flexibility for
future changes.
</content>
</entry>
<entry>
<title>lib/config: add notmuch_config_get_values_string</title>
<updated>2021-03-27T12:26:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-13T17:17:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0c6db22930b58fcea972e71b45f7ea0e6055ed20'/>
<id>urn:sha1:0c6db22930b58fcea972e71b45f7ea0e6055ed20</id>
<content type='text'>
This is to support the less common (at least in the notmuch codebase)
case of accessing a ;-delimited list config value with an arbitrary
string key.
</content>
</entry>
<entry>
<title>lib/config: add configuration variable for backup directory</title>
<updated>2021-03-20T10:51:36Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-17T15:04:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a7873df331bcd53dd1bc8da95c4279163437cc13'/>
<id>urn:sha1:a7873df331bcd53dd1bc8da95c4279163437cc13</id>
<content type='text'>
Like the hook directory, we primarily need a way to communicate this
directory between various components, but we may as well let the user
configure it.

Most of the diff is generalizing choose_hook_dir to work for both
backup and hook directories.
</content>
</entry>
</feed>
