]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch.h
lib: add notmuch_thread_get_total_files
[notmuch] / lib / notmuch.h
index f5018497033d1fff6cea3a71a29a01fa5ced0535..4c03a893d70790ac21b896de6fbdc7c134a3c3f6 100644 (file)
@@ -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.