]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
Optimize thread search using matched docid sets.
[notmuch] / lib / message.cc
index 225b7e91bbaa4db27cd016fb587dd22c6e2e6523..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)
 {