This question already has an answer here:
I am a part of multiple groups in my corporate Gmail account, and would like to filter out all emails from my Inbox that come to email@example.com so that they are marked as read and archived, except when the message is also addressed to firstname.lastname@example.org, in which case I want to keep it in my Inbox.
- If a message is addressed only to email@example.com, filter it out of my inbox
- If a message is addressed only to firstname.lastname@example.org, keep it in the inbox
- If a message is addressed to both email@example.com and firstname.lastname@example.org, keep it in the inbox.
I tried a lot of filters but somehow could not get it right. Is there a way to achieve this ?