Gmail – AND Gmail’s To and From fields

gmailgmail-filters

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).

Best Answer

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