aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-29 09:06:53 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-29 09:06:53 -0700
commit90a0ef4ac4a023f11f82b037c635b4b22762b12f (patch)
tree597c472e409ebcbe6833634a3d2f4da42a511035 /notmuch.h
parentbf78a89196b251c2465f6cefa8198f22c87ff23d (diff)
notmuch show: Add body of message as well.
This is just the raw message body for now, (so any MIME parsing will be up to the consumer). And this will likely change in the future.
Diffstat (limited to 'notmuch.h')
-rw-r--r--notmuch.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/notmuch.h b/notmuch.h
index a17c7020..d25f277c 100644
--- a/notmuch.h
+++ b/notmuch.h
@@ -617,6 +617,16 @@ notmuch_message_get_thread_id (notmuch_message_t *message);
const char *
notmuch_message_get_filename (notmuch_message_t *message);
+/* Get the size in bytes of the full header section of 'message'.
+ *
+ * This is useful in conjunction with notmuch_message_get_filename
+ * for separately parsing the message header and content.
+ *
+ * Returns 0 in the case of any error.
+ */
+size_t
+notmuch_message_get_header_size (notmuch_message_t *message);
+
/* Get the value of the specified header from 'message'.
*
* The value will be read from the actual message file, not from the