Gmail filter "has words" - How to include multiple AND queries?

136.6k views Asked by At

I'm trying to filter our emails on Gmail that are:

from: specific sender

to: specific recipient

subject: contains specific words

I tried this filter:

has words>> from:[email protected] AND to: [email protected] --> this works by its own

has words>> subject:(test AND demo) --> this works by its own

problem is - when I use them together, it doesn't work:

has words>> from:[email protected] AND to: [email protected] AND subject:(test AND demo

OR

has words>> from:[email protected] AN subject:(test AND demo)

How can I achieve the filtering I need?

4

There are 4 answers

1
ShayeRyan On

If you want to add multiple words, you need to use quotes, and OR to separate words like so "word1" OR "word2" OR "word3"

I found this especially useful when trying to get rid of all the privacy policy emails I've been getting slammed with lately. This short tutorial explains it. https://youtu.be/f9Ttwq-Pidw

2
SDsolar On

Google has a page which explains this:

Search operators you can use with Gmail

These same searches work in the Has Words section of filters.

The key is to capitalize OR and AND in between the choices.

If you want to specify multiple email addresses then use the same firld and this sort of syntax:

Has Words

from:([email protected] OR [email protected])
0
Paul Wichtendahl On

I wanted to filter by the displayed name and apply them in a single filter. This worked (The Washington Reporter) OR (Hooterville Times) OR (The Daily Ragpicker). breaking that down it is (display name) OR (display name)

0
Jim On

from:([email protected] OR [email protected])

this not working only this in from field ([email protected] OR [email protected]) or [email protected] OR [email protected]

or in "has the words" field ([email protected] OR [email protected]) "mplamp" OR "mplaa"