lib: Add the exclude flag to notmuch_query_search_threads
authorMark Walters <markwalters1009@gmail.com>
Thu, 1 Mar 2012 22:30:38 +0000 (22:30 +0000)
committerDavid Bremner <bremner@debian.org>
Fri, 2 Mar 2012 12:28:39 +0000 (08:28 -0400)
commit1a53f9f116fa7c460cda3df532be921baaafb082
treed733d1f924b86d1421ab414eba69403bbdbf5fc3
parentc9eb94d7fb520612374870dda9b9058a85c9b03d
lib: Add the exclude flag to notmuch_query_search_threads

Add the NOTMUCH_MESSAGE_FLAG_EXCLUDED flag to
notmuch_query_search_threads. Implemented by inspecting the tags
directly in _notmuch_thread_create/_thread_add_message rather than as
a Xapian query for speed reasons.

Note notmuch_thread_get_matched_messages now returns the number of
non-excluded matching messages. This API is not totally desirable but
fixing it means breaking binary compatibility so we delay that.
lib/notmuch-private.h
lib/notmuch.h
lib/query.cc
lib/thread.cc