aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-11-11 04:28:01 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-11-11 04:28:01 -0800
commit89954b453c7b97a5d173bb87f3f2bbc0510425c2 (patch)
treeef3d9dcdfeaab284b27dc6fab3f14949faeddda4
parentf6ec7ca78f867c2ae27d0dba154a2395ccf15f52 (diff)
notmuch setup: Fix to add maildir group (with comment) to existing file
The intent of "notmuch setup" is that it adds new, documented sections to configuration files that were created before such sections were defined. But to make this work, we have to explicitly set an option in the maildir group if it didn't exist previously.
-rw-r--r--notmuch-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-config.c b/notmuch-config.c
index 45a5367b..e98c3975 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -344,7 +344,7 @@ notmuch_config_open (void *ctx,
g_key_file_get_boolean (config->key_file,
"maildir", "synchronize_flags", &error);
if (error) {
- config->maildir_synchronize_flags = TRUE;
+ notmuch_config_set_maildir_synchronize_flags (config, TRUE);
g_error_free (error);
}