notmuch_query_add_tag_exclude bug

David Bremner david at tethera.net
Sun Mar 11 06:19:41 PDT 2018


Justus Winter <justus at sequoia-pgp.org> writes:

> Hi :)
>
> so I found a weird bug with notmuch_query_add_tag_exclude.  Apparently,
> when I exclude 'spam', and search for 'spam', I still get results, but
> if I exclude 'spam', and search for 'is_a_spam', I get no results, even
> though there are mails tagged with that tag.
>

I'm not sure I follow you you. Can you try with

    export NOTMUCH_DEBUG_QUERY=yes

and see what the query terms are?

The latter actually sounds legit assuming

    - the excluded messages are tagged spam
    - the query parser is not breaking is_a_spam up, but treating it as
      one term.


More information about the notmuch mailing list