]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
Optimize thread search using matched docid sets.
[notmuch] / lib / message.cc
index 293e854dd73ed82069f75f38b23e6d6d7a5b2e7a..adcd07d6687e0e49cf716a311dab2f2205bcfc24 100644 (file)
@@ -254,6 +254,12 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch,
     return message;
 }
 
+unsigned int
+_notmuch_message_get_doc_id (notmuch_message_t *message)
+{
+    return message->doc_id;
+}
+
 const char *
 notmuch_message_get_message_id (notmuch_message_t *message)
 {
@@ -1122,7 +1128,7 @@ notmuch_message_tags_to_maildir_flags (notmuch_message_t *message)
     const char *filename;
     char *filename_new;
     char *to_set, *to_clear;
-    notmuch_status_t status;
+    notmuch_status_t status = NOTMUCH_STATUS_SUCCESS;
 
     _get_maildir_flag_actions (message, &to_set, &to_clear);