From 17548e314a8f190765ca714d626068c5afef2cb4 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 23 Oct 2009 05:41:17 -0700 Subject: Add internal functions for manipulating a new notmuch_message_t This will support the add_message function in incrementally creating state in a new notmuch_message_t. The new functions are _notmuch_message_set_filename _notmuch_message_add_thread_id _notmuch_message_ensure_thread_id _notmuch_message_set_date _notmuch_message_sync --- notmuch-private.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'notmuch-private.h') diff --git a/notmuch-private.h b/notmuch-private.h index c8f53a7..8060254 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -132,6 +132,24 @@ _notmuch_message_remove_term (notmuch_message_t *message, const char *prefix_name, const char *value); +void +_notmuch_message_set_filename (notmuch_message_t *message, + const char *filename); + +void +_notmuch_message_add_thread_id (notmuch_message_t *message, + const char *thread_id); + +void +_notmuch_message_ensure_thread_id (notmuch_message_t *message); + +void +_notmuch_message_set_date (notmuch_message_t *message, + const char *date); + +void +_notmuch_message_sync (notmuch_message_t *message); + /* message-file.c */ /* XXX: I haven't decided yet whether these will actually get exported -- cgit v1.2.3