<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/notmuch-config.c, branch 0.19</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.19</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.19'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2014-09-07T18:01:01Z</updated>
<entry>
<title>cli: Be more helpful when .notmuch-config does not exist</title>
<updated>2014-09-07T18:01:01Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@mit.edu</email>
</author>
<published>2014-09-03T15:28:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3d39d346d793b9bea0c23ae2c16600feab11ee19'/>
<id>urn:sha1:3d39d346d793b9bea0c23ae2c16600feab11ee19</id>
<content type='text'>
Previously, if the user ran any subcommand that required a
configuration (e.g., notmuch new) but didn't have a configuration,
notmuch would give the rather un-friendly and un-actionable message

  Error reading configuration file .notmuch-config: No such file or directory

Since this condition is expected for new users, this patch adds
specific handling for the file-not-found case to give a message that
is friendly and actionable.
</content>
</entry>
<entry>
<title>notmuch-config: talloc_strdup MAILDIR and NAME environment variables</title>
<updated>2014-08-08T00:12:27Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2014-08-07T15:19:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=748798511d7cb704ee7f9ce98cfbf87ebc41ab0f'/>
<id>urn:sha1:748798511d7cb704ee7f9ce98cfbf87ebc41ab0f</id>
<content type='text'>
When defined -- the pointer is soon given to talloc_free() which
expects it to be allocated by talloc.
</content>
</entry>
<entry>
<title>config: read database.path from $MAILDIR if set</title>
<updated>2014-07-31T10:13:38Z</updated>
<author>
<name>Mark Oteiza</name>
<email>mvoteiza@udel.edu</email>
</author>
<published>2014-07-21T23:05:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6c9721a40700394e4953e26a8191bbb9552ba145'/>
<id>urn:sha1:6c9721a40700394e4953e26a8191bbb9552ba145</id>
<content type='text'>
Try to read the config parameter database.path from $MAILDIR before
falling back to $HOME/mail
</content>
</entry>
<entry>
<title>config: read user.name from $NAME if set</title>
<updated>2014-07-31T10:13:14Z</updated>
<author>
<name>Mark Oteiza</name>
<email>mvoteiza@udel.edu</email>
</author>
<published>2014-07-21T03:06:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=488b2619643de6776e2649d97b480da8db049023'/>
<id>urn:sha1:488b2619643de6776e2649d97b480da8db049023</id>
<content type='text'>
Try to read the config parameter user.name from $NAME before taking the
user name from /etc/passwd.
</content>
</entry>
<entry>
<title>compat: add canonicalize_file_name</title>
<updated>2014-04-08T10:27:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-01-27T14:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=af5c3afa91cc29268c6754ea70f15cae30f22403'/>
<id>urn:sha1:af5c3afa91cc29268c6754ea70f15cae30f22403</id>
<content type='text'>
the POSIX 2008 behaviour of realpath is not available everywhere so we
provide a simple wrapper function.  We use (and provide) the gnu
extension canonicalize_file_name to make it cleaner to test for the
feature we need; otherwise we have to rely on realpath segfaulting if
the second argument is null.
</content>
</entry>
<entry>
<title>cli: abstract common config get/set code</title>
<updated>2014-01-19T00:09:49Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-01-17T16:38:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3b36898f0b5cc03d8d93e2892959aacc8953fc2c'/>
<id>urn:sha1:3b36898f0b5cc03d8d93e2892959aacc8953fc2c</id>
<content type='text'>
Pretty straightforward abstraction similar to get/set list.
</content>
</entry>
<entry>
<title>cli: clean up exit status code returned by the cli commands</title>
<updated>2014-01-18T18:45:26Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-01-10T21:28:53Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c7453773064efbd0b2cd17b15ba483edbd28ce1e'/>
<id>urn:sha1:c7453773064efbd0b2cd17b15ba483edbd28ce1e</id>
<content type='text'>
Apart from the status codes for format mismatches, the non-zero exit
status codes have been arbitrary. Make the cli consistently return
either EXIT_SUCCESS or EXIT_FAILURE.
</content>
</entry>
<entry>
<title>notmuch-config: use strchr(), not index() (Solaris support)</title>
<updated>2013-08-24T09:37:51Z</updated>
<author>
<name>Blake Jones</name>
<email>blakej@foo.net</email>
</author>
<published>2012-11-14T02:10:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d416294ae87ee08a723616abe7bf0fa78cc35dbf'/>
<id>urn:sha1:d416294ae87ee08a723616abe7bf0fa78cc35dbf</id>
<content type='text'>
notmuch-config.c has the only use of the function named "index()" in the
notmuch source.  Several other places use the equivalent function
"strchr()"; this patch just fixes notmuch-config.c to use strchr()
instead.  (Solaris needs to include &lt;strings.h&gt; to get the prototype for
index(), and notmuch-config.c was failing to include that header, so it
wasn't compiling as-is.)
</content>
</entry>
<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>
</feed>
