aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch-private.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-06-04 09:32:27 -0300
committerDavid Bremner <david@tethera.net>2017-08-01 21:17:47 -0400
commit4fdabd636e1b0417bb40c71bdce64e18f0f347e2 (patch)
tree9591a61e9be19bfb2b939cf824f0a52371dc0eec /lib/notmuch-private.h
parent2f94b3090c03bb56b43c4adfb94f7eeb28a6bf18 (diff)
lib: refactor notmuch_database_add_message header parsing
This function is large and hard to understand and modify. Start to break it down into meaningful pieces.
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r--lib/notmuch-private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index 9957164d..57c61639 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -425,6 +425,17 @@ const char *
_notmuch_message_file_get_header (notmuch_message_file_t *message,
const char *header);
+notmuch_status_t
+_notmuch_message_file_get_headers (notmuch_message_file_t *message_file,
+ const char **from_out,
+ const char **subject_out,
+ const char **to_out,
+ const char **date_out,
+ char **message_id_out);
+
+const char *
+_notmuch_message_file_get_filename (notmuch_message_file_t *message);
+
/* index.cc */
notmuch_status_t