aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-restore.c
diff options
context:
space:
mode:
authorGravatar Michal Sojka <sojkam1@fel.cvut.cz>2010-10-31 22:29:17 +0100
committerGravatar Carl Worth <cworth@cworth.org>2010-11-10 13:09:32 -0800
commitd9d3d3e6f06a76dc0fbe24c9655b64acfcd4b9e4 (patch)
tree88ef6ede364b051956bdc8afe585828e17e52bbe /notmuch-restore.c
parent088801a14ab1ccf4c65e5bf7b50b3a1172c477d7 (diff)
Make maildir synchronization configurable
This adds group [maildir] and key 'synchronize_flags' to the configuration file. Its value enables (true) or diables (false) the synchronization between notmuch tags and maildir flags. By default, the synchronization is disabled.
Diffstat (limited to 'notmuch-restore.c')
-rw-r--r--notmuch-restore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-restore.c b/notmuch-restore.c
index b0a4e1ce..b5c5c48d 100644
--- a/notmuch-restore.c
+++ b/notmuch-restore.c
@@ -41,6 +41,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
if (notmuch == NULL)
return 1;
+ notmuch_database_set_maildir_sync (notmuch,
+ notmuch_config_get_maildir_sync (config));
if (argc) {
input = fopen (argv[0], "r");
if (input == NULL) {