X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;h=d0b0d9e43f5bc302e25cb67bccb771772b739df6;hp=c67376ebd2b0fdeef2016c53b7537f9c253ca282;hb=f7b49d658ad507b72d01b06d56975dba0b7cafc8;hpb=93dcc3b695e19dd36cc8f638c6e01ecbbd9a447d diff --git a/lib/notmuch.h b/lib/notmuch.h index c67376eb..d0b0d9e4 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -299,8 +299,8 @@ notmuch_query_create (notmuch_database_t *database, /* Sort values for notmuch_query_set_sort */ typedef enum { - NOTMUCH_SORT_DATE_OLDEST_FIRST, - NOTMUCH_SORT_DATE_NEWEST_FIRST, + NOTMUCH_SORT_DATE, + NOTMUCH_SORT_DATE_REVERSE, NOTMUCH_SORT_MESSAGE_ID } notmuch_sort_t; @@ -469,6 +469,23 @@ notmuch_threads_destroy (notmuch_threads_t *threads); const char * notmuch_thread_get_thread_id (notmuch_thread_t *thread); +/* Get the total number of messages in 'thread'. + * + * This count consists of all messages in the database belonging to + * this thread. Contrast with notmuch_thread_get_matched_messages() . + */ +int +notmuch_thread_get_total_messages (notmuch_thread_t *thread); + +/* Get the number of messages in 'thread' that matched the search. + * + * This count includes only the messages in this thread that were + * matched by the search from which the thread was created. Contrast + * with notmuch_thread_get_total_messages() . + */ +int +notmuch_thread_get_matched_messages (notmuch_thread_t *thread); + /* Get the authors of 'thread' * * The returned string is a comma-separated list of the names of the