X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-setup.c;h=9f37e4a6dc411cfe2efba64687b499580bd445f8;hp=955deb7e51330c633d1a1017de47e35742cc8d4c;hb=0100df8edbc84d95210c369b9eb560b87c2d36be;hpb=14fb9f3c5531f45c9b5bf2e710f033288bcda5c8 diff --git a/notmuch-setup.c b/notmuch-setup.c index 955deb7e..9f37e4a6 100644 --- a/notmuch-setup.c +++ b/notmuch-setup.c @@ -92,9 +92,9 @@ notmuch_setup_command (unused (void *ctx), unused (int argc), unused (char *argv[])) { char *response = NULL; - size_t response_size; + size_t response_size = 0; notmuch_config_t *config; - char **old_other_emails; + const char **old_other_emails; size_t old_other_emails_len; GPtrArray *other_emails; unsigned int i; @@ -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 ();