aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-private.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-23 05:53:52 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-23 05:53:52 -0700
commit1b5d8984c678add2ab5d1353b94a8229421269df (patch)
tree1786b049971bbcb3c90810f3c76916a10e9eb651 /notmuch-private.h
parent69b25a75ec8f4a8b27fe25f234a39a7e67287d36 (diff)
Add _notmuch_message_create_for_message_id
This is the last piece needed for add_message to be able to properly support a message with a duplicate message ID. This function creates a new notmuch_message_t object but one that may reference an existing document in the database.
Diffstat (limited to 'notmuch-private.h')
-rw-r--r--notmuch-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/notmuch-private.h b/notmuch-private.h
index 8060254d..4910311b 100644
--- a/notmuch-private.h
+++ b/notmuch-private.h
@@ -102,6 +102,11 @@ _notmuch_message_create (const void *talloc_owner,
notmuch_database_t *notmuch,
unsigned int doc_id);
+notmuch_message_t *
+_notmuch_message_create_for_message_id (const void *talloc_owner,
+ notmuch_database_t *notmuch,
+ const char *message_id);
+
/* XXX: Here temporarily during code movement only. */
/* "128 bits of thread-id ought to be enough for anybody" */
#define NOTMUCH_THREAD_ID_BITS 128