Excerpts from David Bremner's message of December 7, 2014 14:54: > 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". > Ok, that explains it. You are right - I mixed up, the count is correct. regards, gaute