+
+notmuch_bool_t
+notmuch_config_get_maildir_sync (notmuch_config_t *config)
+{
+ GError *err = NULL;
+ if (config->maildir_sync == MAILDIR_SYNC_UNDEF) {
+ config->maildir_sync =
+ g_key_file_get_boolean (config->key_file,
+ "maildir", "synchronize_flags", &err);
+ if (err) {
+ config->maildir_sync = MAILDIR_SYNC_UNDEF;
+ g_error_free (err);
+ }
+ }
+ return config->maildir_sync;
+}
+
+void
+notmuch_config_set_maildir_sync (notmuch_config_t *config,
+ notmuch_bool_t maildir_sync)
+{
+ g_key_file_set_boolean (config->key_file,
+ "maildir", "synchronize_flags", maildir_sync);
+ config->maildir_sync = maildir_sync;
+}