X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=4c03a893d70790ac21b896de6fbdc7c134a3c3f6;hb=34d77539925f8e743830a2c8df0a079956ae8be3;hp=17f0872e9edf80189602712a5d5be652de8a8e2d;hpb=d55fffffd7bb8c5b215ce6d23f1ac0c203cef17b;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index 17f0872e..4c03a893 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1096,6 +1096,18 @@ notmuch_thread_get_thread_id (notmuch_thread_t *thread); int notmuch_thread_get_total_messages (notmuch_thread_t *thread); +/** + * Get the total number of files in 'thread'. + * + * This sums notmuch_message_count_files over all messages in the + * thread + * @returns Non-negative integer + * @since libnotmuch 5.0 (notmuch 0.25) + */ + +int +notmuch_thread_get_total_files (notmuch_thread_t *thread); + /** * Get a notmuch_messages_t iterator for the top-level messages in * 'thread' in oldest-first order. @@ -1341,6 +1353,14 @@ notmuch_message_get_thread_id (notmuch_message_t *message); notmuch_messages_t * notmuch_message_get_replies (notmuch_message_t *message); +/** + * Get the total number of files associated with a message. + * @returns Non-negative integer + * @since libnotmuch 5.0 (notmuch 0.25) + */ +int +notmuch_message_count_files (notmuch_message_t *message); + /** * Get a filename for the email corresponding to 'message'. *