0

I'd like to create a Gmail filter that combines the To and From fields with an AND. The default behavior seems to combine these fields with an OR.

For example, the below filter will return results of emails either from dude@email.com OR to guy@email.com.

enter image description here

Unfortunately this is not what I want. I would like to filter emails only from dude@email.com AND to guy@email.com. The filtered emails can't just reference one of them - it has to be both.

So far I've tried writing it out in a search like this:
from:dude@email.com AND to:guy@email.com

But that just yields a filter like this: enter image description here

All that did was put 'AND' in the "Has the words" field.

How can I specify a filter so that both conditions are satisfied (and not just one of them).

2
  • What are the results you get? Which emails are not included? What are the ones you find have in common? – marikamitsos Oct 28 '20 at 18:23
  • Some emails are from dude@email.com. Some emails are to guy@email.com. Some are from dude@gmail.com and to guy@email.com. I only want the latter – kraftydevil Oct 28 '20 at 18:43
1

Please try the following filter in the Includes the words field, leaving everything else blank.

The results will be ALL and ONLY the emails from:dude@email.com AND to:guy@email.com

{(from:dude@email.com) AND (to:guy@email.com)}

enter image description here

4
  • I will try to let you know if this works after getting some emails. Thank you 👍 – kraftydevil Oct 28 '20 at 19:42
  • I thought you already had some. :) So we were looking for non-existing emails? Then how did you get the results here and here? Anyway... Please remember that as per site guidelines when an answer addresses your question, accept it so others can benefit as well. – marikamitsos Oct 28 '20 at 19:57
  • Sorry - I do have existing emails. I was in a rush with my previous comment and misspoke. The problem is that your filter isn't behaving as expected. I'm trying to figure out if I specified the problem incorrectly or if your solution doesn't work. When I'm done with that I'll let you know – kraftydevil Oct 28 '20 at 20:46
  • Hope you get it right. – marikamitsos Oct 29 '20 at 2:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.