X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.h;h=a3608ba0dfcc03e0e8701192c57d4eab7199c165;hp=d25f277c87776028411f783b6bec40142d2322d8;hb=ea97496081b8ffabce658463a2c6c847cdf02ea8;hpb=90a0ef4ac4a023f11f82b037c635b4b22762b12f diff --git a/notmuch.h b/notmuch.h index d25f277c..a3608ba0 100644 --- a/notmuch.h +++ b/notmuch.h @@ -488,6 +488,16 @@ notmuch_thread_get_thread_id (notmuch_thread_t *thread); const char * notmuch_thread_get_subject (notmuch_thread_t *thread); +/* Get the date of the oldest message in 'thread' as a time_t value. + */ +time_t +notmuch_thread_get_oldest_date (notmuch_thread_t *thread); + +/* Get the date of the oldest message in 'thread' as a time_t value. + */ +time_t +notmuch_thread_get_newest_date (notmuch_thread_t *thread); + /* Get the tags for 'thread', returning a notmuch_tags_t object which * can be used to iterate over all tags. * @@ -617,6 +627,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