aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-setup.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-setup.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-setup.c')
-rw-r--r--notmuch-setup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/notmuch-setup.c b/notmuch-setup.c
index c3ea9371..36ce71fb 100644
--- a/notmuch-setup.c
+++ b/notmuch-setup.c
@@ -195,6 +195,16 @@ notmuch_setup_command (unused (void *ctx),
g_ptr_array_free (tags, TRUE);
}
+ prompt ("Synchronize maildir flags with notmuch tags? %s: ",
+ notmuch_config_get_maildir_sync (config) == TRUE ? "[yes]/no" : "[no]/yes");
+ if (strlen (response) > 0) {
+ if (strcasecmp (response, "yes") == 0||
+ strcasecmp (response, "y") == 0)
+ notmuch_config_set_maildir_sync (config, TRUE);
+ else
+ notmuch_config_set_maildir_sync (config, FALSE);
+ }
+
if (! notmuch_config_save (config)) {
if (is_new)
welcome_message_post_setup ();