searching for multiple tags

David Bremner david at tethera.net
Sat Mar 17 04:08:33 PDT 2018


Brian May <brian at linuxpenguins.xyz> writes:

> Hello,
>
> How do I search for emails containing multiple tags?
>
> I have tried:
>
> tag:unread tag:important
>
> However, this finds emails that contain either the unread tag or the
> important tag. Not emails that contain both.
>
> Am I doing something wrong?

This is a design-choice/quirk of the Xapian query parser, discussed
under "Operators" in man notmuch-search-terms; terms with a common
prefix are implicitely combined with an OR.
I don't think that documentation has changed since 0.23, but you can
compare with https://notmuchmail.org/manpages/notmuch-search-terms-7/

d


More information about the notmuch mailing list