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".