]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-setup.c
test: Add a new test that removal of a maildir flag also changes tags
[notmuch] / notmuch-setup.c
index c3ea9371c13cbc4058922fbdc920a5755e4084f0..9f37e4a6dc411cfe2efba64687b499580bd445f8 100644 (file)
@@ -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_synchronize_flags (config) == TRUE ? "[yes]/no" : "[no]/yes");
+    if (strlen (response) > 0) {
+       if (strcasecmp (response, "yes") == 0||
+           strcasecmp (response, "y") == 0)
+           notmuch_config_set_maildir_synchronize_flags (config, TRUE);
+       else
+           notmuch_config_set_maildir_synchronize_flags (config, FALSE);
+    }
+
     if (! notmuch_config_save (config)) {
        if (is_new)
          welcome_message_post_setup ();