This question already has an answer here:
- Exclude label from a Gmail search? 5 answers
In Gmail, I want to search (not filter) messages which have a certain label
label-a AND do not have another label
For instance, given those messages:
- M1 :
- M2 :
- M3 :
- M4 :
the search should match M1 and M4.
is:label-a -label:label-b nearly works, but it leaves a few messages unfiltered.