From: Carl Worth Date: Thu, 11 Nov 2010 12:28:01 +0000 (-0800) Subject: notmuch setup: Fix to add maildir group (with comment) to existing file X-Git-Tag: 0.5~20 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=89954b453c7b97a5d173bb87f3f2bbc0510425c2;hp=f6ec7ca78f867c2ae27d0dba154a2395ccf15f52 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. --- 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); }