summaryrefslogtreecommitdiff
path: root/message.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-29 09:06:53 -0700
committerCarl Worth <cworth@cworth.org>2009-10-29 09:06:53 -0700
commit90a0ef4ac4a023f11f82b037c635b4b22762b12f (patch)
tree597c472e409ebcbe6833634a3d2f4da42a511035 /message.cc
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 'message.cc')
-rw-r--r--message.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/message.cc b/message.cc
index dfd55d5..e2f1cd3 100644
--- a/message.cc
+++ b/message.cc
@@ -267,6 +267,17 @@ notmuch_message_get_all_headers (notmuch_message_t *message)
return notmuch_message_file_get_all_headers (message->message_file);
}
+size_t
+notmuch_message_get_header_size (notmuch_message_t *message)
+{
+ _notmuch_message_ensure_message_file (message);
+ if (message->message_file == NULL)
+ return 0;
+
+ return notmuch_message_file_get_header_size (message->message_file);
+
+}
+
const char *
notmuch_message_get_thread_id (notmuch_message_t *message)
{