]> git.notmuchmail.org Git - notmuch/commit
lib: add function to get the number of threads matching a search
authorJani Nikula <jani@nikula.org>
Tue, 15 Nov 2011 20:08:48 +0000 (22:08 +0200)
committerDavid Bremner <bremner@debian.org>
Tue, 15 Nov 2011 23:12:32 +0000 (19:12 -0400)
commit00c60fbcb3b2b7c9f90c36e4dfb9393fdf678735
treea5b1b4736a5d2745efc605774a828dae8e82c814
parented20210b6db0b237d48765351cb99b87be7a0509
lib: add function to get the number of threads matching a search

Add function notmuch_query_count_threads() to get the number of threads
matching a search. This is done by performing a search and figuring out the
number of unique thread IDs in the matching messages, a significantly
heavier operation than notmuch_query_count_messages().

Signed-off-by: Jani Nikula <jani@nikula.org>
lib/notmuch.h
lib/query.cc