X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.h;fp=notmuch.h;h=3f59709a579542db6eeaa1d00baa7022eff9396f;hp=d25f277c87776028411f783b6bec40142d2322d8;hb=41c7ad2c91e56bfc0b2fefa0be303605d34f4042;hpb=8b93875b2705caa10d33e6fc71ebce6f41fdd79b diff --git a/notmuch.h b/notmuch.h index d25f277c..3f59709a 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