Re: notmuch_query_add_tag_excluded and notmuch_query_search_threads

Subject: Re: notmuch_query_add_tag_excluded and notmuch_query_search_threads

Date: Sun, 07 Dec 2014 14:54:55 +0100

To: Gaute Hope, notmuch@notmuchmail.org

Cc:

From: David Bremner


Gaute Hope <eg@gaute.vetsj.com> writes:

>
> I also did an notmuch_query_count_threads (query) as illustrated
> above, this returns 0 and also results in the erroneous behavior
> below. Your code works as expected without the _count_threads() call.

I think there's a documentation error; notmuch_query_count_threads is
destructive. As to why your's returns 0 that's still a mystery to me. I
get 84, which matches the output from "notmuch search".

Thread: