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 email@example.com OR to firstname.lastname@example.org.
Unfortunately this is not what I want. I would like to filter emails only from email@example.com AND to firstname.lastname@example.org. 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:email@example.com AND to:firstname.lastname@example.org
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).