]> git.notmuchmail.org Git - notmuch/blobdiff - message.cc
notmuch show: Add body of message as well.
[notmuch] / message.cc
index dfd55d596e21af0cac4d79416f9029644a5f4d75..e2f1cd31843541f43002cd77eb0bc4576ca7ade4 100644 (file)
@@ -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)
 {