X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=c4b7da38afe07ede1b998cd082298f9f2f75577a;hp=7aa0674d186c3fbd8a71e42460338a5232c237a9;hb=7c450905e41d9bc81aca82f4593a5b42a4bb8e31;hpb=de2acbd49c8fdb0c5bc28513283a9e12eefdaca3;ds=sidebyside diff --git a/notmuch-new.c b/notmuch-new.c index 7aa0674d..c4b7da38 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -418,10 +418,12 @@ add_files_recursive (notmuch_database_t *notmuch, /* success */ case NOTMUCH_STATUS_SUCCESS: state->added_messages++; + notmuch_message_freeze (message); for (tag=state->new_tags; *tag != NULL; tag++) notmuch_message_add_tag (message, *tag); if (state->synchronize_flags == TRUE) notmuch_message_maildir_flags_to_tags (message); + notmuch_message_thaw (message); break; /* Non-fatal issues (go on to next file) */ case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: