X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fmessage.cc;h=e819f27a40da831a0371b03fc8f56b938dabb8e2;hp=4ab0ed269fd0bca5ce83142aeb97a718a5a1bdc8;hb=0bb05ff693737c5b91d6a64f6209984a6c418c46;hpb=6575b7eb31a710c8215be698d5cf31be20d4356e diff --git a/lib/message.cc b/lib/message.cc index 4ab0ed26..e819f27a 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -1999,6 +1999,10 @@ notmuch_message_reindex (notmuch_message_t *message, goto DONE; } + ret = notmuch_message_remove_all_properties_with_prefix (message, "index."); + if (ret) + goto DONE; /* XXX TODO: distinguish from other error returns above? */ + /* re-add the filenames with the associated indexopts */ for (; notmuch_filenames_valid (orig_filenames); notmuch_filenames_move_to_next (orig_filenames)) {