X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=d716bce37b17e7f7689cb25ca2aa5b9768c5cdfa;hp=3b0182a9e91a2a550ed9ad986f880d61764ebb6f;hb=31db02a8c1afdb025da6e0e7e62630ffffc69eb7;hpb=9c4efa8487d292268d9ae6a089b1063c6e82e6e4 diff --git a/notmuch.c b/notmuch.c index 3b0182a9..d716bce3 100644 --- a/notmuch.c +++ b/notmuch.c @@ -287,6 +287,7 @@ add_files_recursive (notmuch_database_t *notmuch, case NOTMUCH_STATUS_FILE_ERROR: case NOTMUCH_STATUS_NULL_POINTER: case NOTMUCH_STATUS_TAG_TOO_LONG: + case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: case NOTMUCH_STATUS_LAST_STATUS: INTERNAL_ERROR ("add_message returned unexpected value: %d", status); goto DONE; @@ -854,6 +855,10 @@ restore_command (int argc, char *argv[]) goto NEXT_LINE; } + notmuch_message_freeze (message); + + notmuch_message_remove_all_tags (message); + next = tags; while (next) { tag = strsep (&next, " "); @@ -869,6 +874,7 @@ restore_command (int argc, char *argv[]) } } + notmuch_message_thaw (message); notmuch_message_destroy (message); } NEXT_LINE: