X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch-new.c;h=c4b7da38afe07ede1b998cd082298f9f2f75577a;hb=7c450905e41d9bc81aca82f4593a5b42a4bb8e31;hp=cdf8513537f7a7c6eb19251f77695d1fc1e90a78;hpb=73198f5c7409e530279f5dd2d4caa415358e8237;p=obsolete%2Fnotmuch-old diff --git a/notmuch-new.c b/notmuch-new.c index cdf85135..c4b7da38 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -418,13 +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); - /* Defer sync of maildir flags until after old filenames - * are removed in the case of a rename. */ if (state->synchronize_flags == TRUE) - _filename_list_add (state->message_ids_to_sync, - notmuch_message_get_message_id (message)); + 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: