notmuch setup: Fix to add maildir group (with comment) to existing file
authorCarl Worth <cworth@cworth.org>
Thu, 11 Nov 2010 12:28:01 +0000 (04:28 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 11 Nov 2010 12:28:01 +0000 (04:28 -0800)
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.

notmuch-config.c

index 45a5367bb61833e9ed79fd29ed8e9956b6d92265..e98c39755f2f6e52d389481d06fbc333fd570c64 100644 (file)
@@ -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);
     }