summaryrefslogtreecommitdiff
path: root/notmuch.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-29 16:06:27 -0700
committerCarl Worth <cworth@cworth.org>2009-10-29 17:30:56 -0700
commit41c7ad2c91e56bfc0b2fefa0be303605d34f4042 (patch)
tree091b85065239d7dce5dcb0321b74e32d538f1b8c /notmuch.h
parent8b93875b2705caa10d33e6fc71ebce6f41fdd79b (diff)
notmuch show: Add a one-line summary of the message before the header.
The idea here is that a client could usefully display just this one line while optionally hiding the other header fields.
Diffstat (limited to 'notmuch.h')
-rw-r--r--notmuch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/notmuch.h b/notmuch.h
index d25f277..3f59709 100644
--- a/notmuch.h
+++ b/notmuch.h
@@ -617,6 +617,14 @@ notmuch_message_get_thread_id (notmuch_message_t *message);
const char *
notmuch_message_get_filename (notmuch_message_t *message);
+/* Get the date of 'message' as a time_t value.
+ *
+ * For the original textual representation of the Date header from the
+ * message call notmuch_message_get_header() with a header value of
+ * "date". */
+time_t
+notmuch_message_get_date (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