Search code examples
emailfiltergmailgmail-api

Exclude multiple senders in gmail filter


I've been trying to set up a Gmail filter which should include all mail that was CC'ed to user A, but not those emails which are also addressed to user B or C (or both of them).

In other words, I want the filter to select emails that were sent only to user A, but if it was also sent to anyone else on the team (B or C), it should not select them.

This is what I was trying to write, but it didn't work:

[email protected] -{[email protected] or [email protected]}

Solution

  • This what I did and it worked fine:

    [email protected] -{[email protected]} -{[email protected]}