diff options
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r-- | lib/notmuch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index a61cd02..260cc22 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -468,6 +468,14 @@ notmuch_threads_advance (notmuch_threads_t *threads); void notmuch_threads_destroy (notmuch_threads_t *threads); +/* Return an estimate of the number of messages matching a search + * + * This function performs a search and returns Xapian's best + * guess as to number of matching messages. + */ +unsigned +notmuch_query_count_messages (notmuch_query_t *query); + /* Get the thread ID of 'thread'. * * The returned string belongs to 'thread' and as such, should not be |