aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-29 17:31:07 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-29 17:31:07 -0700
commitc771eaf362edb021888d114989d38d8fb2b4cfb3 (patch)
treeba5a02ac5a84560733b5e31d3b633b8d256bb382 /notmuch.h
parent41c7ad2c91e56bfc0b2fefa0be303605d34f4042 (diff)
notmuch search: Add (relative) date to search output
The new function for formatting relative dates is nice enough that we need to start using it more places. Here's one of them.
Diffstat (limited to 'notmuch.h')
-rw-r--r--notmuch.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/notmuch.h b/notmuch.h
index 3f59709a..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.
*