<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/config.cc, branch 0.33.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.33.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.33.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-09-10T11:17:06Z</updated>
<entry>
<title>lib: use 'localhost' rather than fqdn for default mail address.</title>
<updated>2021-09-10T11:17:06Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-09-09T12:51:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=060ff57642fc74f320761586e244151c04e63755'/>
<id>urn:sha1:060ff57642fc74f320761586e244151c04e63755</id>
<content type='text'>
As discussed in the thread starting at [1], the fully qualified domain
name is a bit tricky to get reproducibly, might reveal information
people prefer to keep private, and somewhat unlikely to provide
reliable mail routing.

The new approach of $current_username@localhost is better for the
first two considerations, and probably at least as good as a test mail
address.

[1]: id:87sfyibqhj.fsf@tethera.net
</content>
</entry>
<entry>
<title>lib/config: add NOTMUCH_CONFIG_AUTOCOMMIT</title>
<updated>2021-06-27T16:59:42Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-21T15:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2f608d2a9400f666ec0aca1f76b59f6640104e4e'/>
<id>urn:sha1:2f608d2a9400f666ec0aca1f76b59f6640104e4e</id>
<content type='text'>
This will be used to control how often atomic transactions are
committed.
</content>
</entry>
<entry>
<title>lib/config: fix memory leak</title>
<updated>2021-06-25T12:13:04Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-06-19T00:59:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=35d559eb18d779822074a0781585642028e61ed8'/>
<id>urn:sha1:35d559eb18d779822074a0781585642028e61ed8</id>
<content type='text'>
This commit fixes a small memory leak (per iterator restart) by
actually using the talloc context intended to be blown away on
restart.
</content>
</entry>
<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>
</feed>
