Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

gmail

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?

like image 963
Rani Avatar asked Mar 17 '14 16:03

Rani


People also ask

What is an example of a filter in Gmail?

Function Example Use OR The `OR`operator tells Gmail to filter on either one thing or another. unsubscribe OR browser Filter emails with either the word *unsubscribe*or the word *browser*. The minus sign (`-`) operator tells Gmail to exclude a specific item from the filter.

How do I create a spam filter in Gmail?

Use this filter to automatically and permanently delete every email Gmail identifies as spam as soon as it arrives in your account: Click the down arrow in Gmail’s search bar. In the "Has the words" field, type is:spam. Click the "Create filter with this search" link. Click the "OK" button in the "Confirm creating filter" modal.

How do I filter my Gmail search results?

You can use words or symbols called search operators to filter your Gmail search results. You can also combine operators to filter your results even more. Go to Gmail.

How do I find out how many words apart in Gmail?

Go to Gmail. In the search box, type the search operator. Tip: Once you do a search using search operators, you can use the results to set up a filter for these messages. Find messages with words near each other. Use the number to say how many words apart the words can be


3 Answers

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])
like image 167
SDsolar Avatar answered Oct 21 '22 10:10

SDsolar


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

like image 45
ShayeRyan Avatar answered Oct 21 '22 09:10

ShayeRyan


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)

like image 1
Paul Wichtendahl Avatar answered Oct 21 '22 10:10

Paul Wichtendahl