X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-restore.c;h=98660b32cf0257b95da65450e37e4c080ca49b5e;hp=53ce2548dc71ddf9755f497aa9a184542ade66ec;hb=4cfb2a02778bac16e785bbea1fd6c665e34bd955;hpb=069cb5a73ac2487930baa75a9cd2850968361a16 diff --git a/notmuch-restore.c b/notmuch-restore.c index 53ce2548..98660b32 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_synchronize_flags (config)); if (argc) { input = fopen (argv[0], "r"); if (input == NULL) { @@ -93,8 +95,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[]) db_tags_str = NULL; for (db_tags = notmuch_message_get_tags (message); - notmuch_tags_has_more (db_tags); - notmuch_tags_advance (db_tags)) + notmuch_tags_valid (db_tags); + notmuch_tags_move_to_next (db_tags)) { const char *tag = notmuch_tags_get (db_tags);