X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-setup.c;h=9f37e4a6dc411cfe2efba64687b499580bd445f8;hp=ec4bfebc7e52c5fda803b301c84cfc43f55360d7;hb=4cfb2a02778bac16e785bbea1fd6c665e34bd955;hpb=c6e70e15eaf7355fb9fe9b599aef07f2be619968 diff --git a/notmuch-setup.c b/notmuch-setup.c index ec4bfebc..9f37e4a6 100644 --- a/notmuch-setup.c +++ b/notmuch-setup.c @@ -92,7 +92,7 @@ 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; const char **old_other_emails; size_t old_other_emails_len; @@ -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 ();