Hello, I found that on particular queries notmuch return different results if run the query few times. Re-initialing the query or db doesn't help. I've attached test case along with corpus of messages. Unpack the archive and run `make' there. It will initialize the notmuch database for the corpus, build and run the test-case. -- Kirill A. Shutemov