How can I exclude a given label from a search, effectively finding all the messages that do not have that label applied?
I've searched Google, SuperUser, and Search operators you can use with Gmail, to no avail.
Here are the searches I've tried, none of which work:
I did some additional testing and believe
- searches work however the search will return conversations if at least one message matches the search. In other words, if there is one message in a conversation that lacks the label
work then all the messages in the conversation including those labeled
work will be returned.
I want my search to only return a conversation if all the messages lack the label.
I tried to work around the issue (per Gianni Di Noia's advice) by creating a filter that matches emails labeled
work and applies the label
work to the conversation however the filter is never triggered because filters act on incoming messages only based on the properties of the incoming email, not on the conversation to which Gmail assigns that email.
Google also warned me of this when I set up the filter: