aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/query.cc
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2012-03-01 22:30:38 +0000
committerGravatar David Bremner <bremner@debian.org>2012-03-02 08:28:39 -0400
commit1a53f9f116fa7c460cda3df532be921baaafb082 (patch)
treed733d1f924b86d1421ab414eba69403bbdbf5fc3 /lib/query.cc
parentc9eb94d7fb520612374870dda9b9058a85c9b03d (diff)
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.
Diffstat (limited to 'lib/query.cc')
-rw-r--r--lib/query.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/query.cc b/lib/query.cc
index ef2a11f8..ab18fbc6 100644
--- a/lib/query.cc
+++ b/lib/query.cc
@@ -475,6 +475,7 @@ notmuch_threads_get (notmuch_threads_t *threads)
threads->query->notmuch,
doc_id,
&threads->match_set,
+ threads->query->exclude_terms,
threads->query->sort);
}