diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-26 17:35:31 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-26 17:35:31 -0700 |
commit | c12823648ee84b4748e0e9f0cd97f7264911b589 (patch) | |
tree | c3bbb5ed573bcd2a63167416ccab6a09f708ffb5 /notmuch.h | |
parent | 8e96a87fff4d34a154d1456e9ad47e7b0c322d54 (diff) |
Add public notmuch_thread_get_subject
And use this in "notmuch search" to display subject line as well as
thread ID.
Diffstat (limited to 'notmuch.h')
-rw-r--r-- | notmuch.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -458,6 +458,20 @@ notmuch_thread_results_destroy (notmuch_thread_results_t *results); const char * notmuch_thread_get_thread_id (notmuch_thread_t *thread); +/* Get the subject of 'thread' + * + * The subject is taken from the first message (according to the query + * order---see notmuch_query_set_sort) in the query results that + * belongs to this thread. + * + * The returned string belongs to 'thread' and as such, should not be + * modified by the caller and will only be valid for as long as the + * thread is valid, (which is until notmuch_thread_destroy or until + * the query from which it derived is destroyed). + */ +const char * +notmuch_thread_get_subject (notmuch_thread_t *thread); + /* Get the tags for 'thread', returning a notmuch_tags_t object which * can be used to iterate over all tags. * |