<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/notmuch-config.c, branch 0.16</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.16</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.16'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-05-12T10:46:44Z</updated>
<entry>
<title>cli: config: fix config file save when the file does not exist</title>
<updated>2013-05-12T10:46:44Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-05-05T19:18:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9641fe1ce70d804ab4a9f63671e3905944dba7e5'/>
<id>urn:sha1:9641fe1ce70d804ab4a9f63671e3905944dba7e5</id>
<content type='text'>
The use of realpath(3) in
commit 58ed67992d0ec1fa505026105218fa449f7980b0
Author: Jani Nikula &lt;jani@nikula.org&gt;
Date:   Sun Apr 7 20:15:03 2013 +0300

    cli: config: do not overwrite symlinks when saving config file

broke config file save when the file does not exist, which results in
'notmuch setup' always failing to create a new config file.

Fix by checking ENOENT from realpath(3).
</content>
</entry>
<entry>
<title>cli: config: do not overwrite symlinks when saving config file</title>
<updated>2013-04-14T21:38:07Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-04-07T17:15:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=58ed67992d0ec1fa505026105218fa449f7980b0'/>
<id>urn:sha1:58ed67992d0ec1fa505026105218fa449f7980b0</id>
<content type='text'>
Use realpath to canonicalize the config path before writing.

Previously 'notmuch setup' and 'notmuch config set' overwrote the
config file even if it was a symbolic link.
</content>
</entry>
<entry>
<title>cli: config: remove unnecessary braces from if blocks</title>
<updated>2013-03-30T22:30:06Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-03-30T14:21:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bf3436669343b935a119fd37c4469c8948610121'/>
<id>urn:sha1:bf3436669343b935a119fd37c4469c8948610121</id>
<content type='text'>
Cosmetic change to drop unnecessary braces that don't even conform to
the prevailing coding style.
</content>
</entry>
<entry>
<title>cli: move config open/close to main() from subcommands</title>
<updated>2013-03-08T11:54:41Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-03-03T21:55:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4ef2106792439f5ade157b3ba3b8f7fa86fcb3ed'/>
<id>urn:sha1:4ef2106792439f5ade157b3ba3b8f7fa86fcb3ed</id>
<content type='text'>
This allows specifying config file as a top level argument to notmuch,
and generally makes it possible to override config file options in
main(), without having to touch the subcommands.

If the config file does not exist, one will be created for the notmuch
main command and setup and help subcommands. Help is special in this
regard; the config is created just to avoid errors about missing
config, but it will not be saved.

This also makes notmuch config the talloc context for subcommands.
</content>
</entry>
<entry>
<title>cli: config: make notmuch_config_open() "is new" parameter input only</title>
<updated>2013-03-07T13:39:12Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-03-03T21:55:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e76f6517de020783d828be59f461f1d4f465c4b4'/>
<id>urn:sha1:e76f6517de020783d828be59f461f1d4f465c4b4</id>
<content type='text'>
We now have a notmuch_config_is_new() function to query whether a
config was created or not. Change the notmuch_config_open() is_new
parameter into boolean create_new to determine whether the function
should create a new config if one doesn't exist. This reduces the
complexity of the API.
</content>
</entry>
<entry>
<title>cli: config: keep track of whether the config is newly created</title>
<updated>2013-03-07T13:39:05Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-03-03T21:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ca3a4fc02287f65c3587908012d36e68df0200b1'/>
<id>urn:sha1:ca3a4fc02287f65c3587908012d36e68df0200b1</id>
<content type='text'>
Keep track of whether the config is newly created, and add
notmuch_config_is_new() accessor function to query this.

This is to support anyone with a config handle to check this, instead
of just whoever called notmuch_config_open().
</content>
</entry>
<entry>
<title>fix line breaks in one comment paragraph in generated .notmuch-config file</title>
<updated>2013-01-07T02:48:23Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2013-01-05T12:49:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=18d79d19738d1038f1a56cbdc13f3e0ff601efc7'/>
<id>urn:sha1:18d79d19738d1038f1a56cbdc13f3e0ff601efc7</id>
<content type='text'>
While one comment in generated .notmuch-config file looked good in the
source file notmuch-config.c, the generated output was inconsistently
wide -- even breaking the 80-column boundary.
</content>
</entry>
<entry>
<title>config: Add 'config list' command</title>
<updated>2012-04-28T13:45:31Z</updated>
<author>
<name>Peter Wang</name>
<email>novalazy@gmail.com</email>
</author>
<published>2012-04-14T01:41:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d32de8b3c0ba9e3224fbe66e76444bd44c1978fc'/>
<id>urn:sha1:d32de8b3c0ba9e3224fbe66e76444bd44c1978fc</id>
<content type='text'>
Add a command to list all configuration items with their associated
values.

One use is as follows: a MUA may prefer to store data in a central
notmuch configuration file so that the data is accessible across
different machines, e.g. an addressbook.  The list command helps
to implement features such as tab completion on the keys.
</content>
</entry>
<entry>
<title>config: Check 'config get' arity exactly</title>
<updated>2012-04-28T13:13:55Z</updated>
<author>
<name>Peter Wang</name>
<email>novalazy@gmail.com</email>
</author>
<published>2012-04-14T01:41:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=371f3b12a671e3bd955a5e589bd705e3d254d57b'/>
<id>urn:sha1:371f3b12a671e3bd955a5e589bd705e3d254d57b</id>
<content type='text'>
Require that 'config get' is passed exactly one additional argument,
instead of silently ignoring extra arguments. As a side-effect, produce
more specific error messages for the 'config' command as a whole.
</content>
</entry>
<entry>
<title>config: Fix free in 'config get' implementation.</title>
<updated>2012-04-25T02:25:51Z</updated>
<author>
<name>Peter Wang</name>
<email>novalazy@gmail.com</email>
</author>
<published>2012-04-14T01:41:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=443faa3fcc4d57434d4ad484cf7fe7c4a35b4bc1'/>
<id>urn:sha1:443faa3fcc4d57434d4ad484cf7fe7c4a35b4bc1</id>
<content type='text'>
The array returned by g_key_file_get_string_list() should be freed with
g_strfreev(), not free().
</content>
</entry>
</feed>
