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.
This commit is contained in:
Carl Worth 2010-11-11 04:28:01 -08:00
parent f6ec7ca78f
commit 89954b453c

View file

@ -344,7 +344,7 @@ notmuch_config_open (void *ctx,
g_key_file_get_boolean (config->key_file, g_key_file_get_boolean (config->key_file,
"maildir", "synchronize_flags", &error); "maildir", "synchronize_flags", &error);
if (error) { if (error) {
config->maildir_synchronize_flags = TRUE; notmuch_config_set_maildir_synchronize_flags (config, TRUE);
g_error_free (error); g_error_free (error);
} }