aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-06-04 09:32:30 -0300
committerDavid Bremner <david@tethera.net>2017-08-01 21:17:47 -0400
commit8a8e2b11c208050aa1d719ec0933f58d51628fdd (patch)
tree886ee56fb742482b88fae41fe0949e906c7ca15f /lib/notmuch.h
parent411675a6ce78988157c4a078f504b3b7805e54c6 (diff)
lib: add notmuch_message_count_files
This operation is relatively inexpensive, as the needed metadata is already computed by our lazy metadata fetching. The goal is to support better UI for messages with multipile files.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 17f0872e..f5018497 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -1342,6 +1342,14 @@ 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'.
*
* The returned filename is an absolute filename, (the initial