31
votes
How to use boolean AND and NOT operators in Gmail search
Use the minus sign to make a negative rule. You can also string rules together by just leaving a space between separate rules.
For example:
from:na[email protected] -from:[email protected]
or you ...
23
votes
Gmail filter with regular expressions
Googles help article 7190 lists the search operators you can use in Gmail.
This article lists the AROUND keyword mentioned by RADA.
Currently, using the * (SHIFT 8) also works. I use it as *=...
21
votes
Accepted
Gmail filter on partial "words"
Gmail search doesn't support wildcards, partial words, or regular expressions. By extension, then, neither do Gmail filters. (Some information from Google Support.)
@example.com will work because @ ...
17
votes
Gmail Filters are tagging emails, but not moving emails to a designated label
Filters seem to ignore the "Skip Inbox" option if the message is otherwise marked as "Important".
Possible ways to resolve this are:
Mark the messages as being "Not Important" and Gmail will ...
13
votes
Create a Gmail filter for Calendar Notifications
Perhaps the simplest way is
Has the words: "google.com/calendar"
12
votes
How to specify "OR" conditions for Gmail filter
You can group them:
{"Words1" AND "Words2"} OR {"Words1" AND "Words3"} etc...
12
votes
Accepted
Create filter on Gmail for BCC to myself
You need to filter on the delivered-to header.
Fortunately, Gmail allows you to do that.
Use the advanced search flag in the "has the words" field for your filter. For example:
deliveredto:layke+...
11
votes
Create a Gmail filter for Calendar Notifications
All calendar invites have a file attached:
filename:invite.ics
11
votes
How to filter messages with animated emoji in the subject in Gmail?
Short answer
Instead of using Gmail Filters that depends on the Gmail search feature to search for the encoded emojis in the orignal messages, create a script using the GmailMessage::getRawContent() ...
10
votes
Accepted
Composing a Gmail filter: "on this list and not to me"?
I would expect that
{list:mylist1 list:mylist2} -to:[email protected]
would do what you want. The - indicates a negative match, so should match messages from either of the lists where your email ...
9
votes
Setup a Gmail filter to be applied to messages that do not contain a given text
As said in the comments, Gmail filters work best when you tell it what to look for, not what not to look for. This being said, if you would like to filter out all mail besides mail containing "...
8
votes
How to use boolean AND and NOT operators in Gmail search
when trying to avoid multiple phrases in a subject line for selection:
-("phrase one" OR "phrase two" OR "word1")
7
votes
Gmail filter with regular expressions
For Gmail filtering you first need to construct the "Search Operators." Although it's not a regular expression, you can still achieve what you want.
Some words - r1234 - Some more words
Would be ...
7
votes
Gmail filter to mark all incoming mail as read
Within the Gmail filter, for Size, choose "greater than 1 Bytes". For action, choose "Mark as read."
7
votes
Accepted
How to forward a bunch of old Gmail emails?
There really isn't a simple solution. For 37 messages, I'd almost certainly just do them one at a time. It couldn't possibly take more than a half hour.
One other option might be to use Google ...
7
votes
Accepted
What options or tools can I use to have Gmail notify me on receipt of a very important message?
No, in Gmail web client you can't have a filter or particular message generate a Hangouts message or a desktop notification specific to that particular message.
In the Gmail Android app you can ...
7
votes
Accepted
Can I use parentheses to group AND/OR operators in Gmail Filters?
AI E. is correct. AND is assumed, OR can be declared. This is according to the Gmail Help article on Advanced Search.
I recommend reviewing it as there are a lot of ways to improve your Gmail ...
7
votes
Filter all mails sent to domain except for specific recipient
Was playing around with Gmail search. The syntax for what you want is as follows:
to:*@domain.com -to:[email protected]
This also works for the "from" section as well, so it's good if you want to ...
6
votes
How can I reorder Gmail filters?
As of this writing, if you are using the new GMail UI then the export/import approach to re-ordering rules no longer seems to work. I tried all of the options listed in all of the comments on this ...
6
votes
Gmail filter with regular expressions
Short answer
Gmail doesn't include search features such wildcards or regular expressions.
Alternatives
Use the Gmail API, Google Apps Script or third party application that include search features ...
6
votes
Gmail filter with regular expressions
Filtering "From" with:
*@someemail.com OR *@someothermail.com
Works for me.
6
votes
Accepted
Search Gmail for emails without any CC recipients
I don't think there is a complete solution to your question, but following filter is the closest thing I can come up.
-cc:(*@*.(arpa|root|aero|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|...
6
votes
Accepted
How to remove label for some emails?
You can't remove a label with a filter.
However, it seems that Gmail applies filters sequentially, so if you change the order of your filters so that...
the @BitBucket filter is listed above the @...
6
votes
Accepted
Gmail search for unstarred emails in a label
The issue is that the star is associated with a message, not the entire conversation. So when you use:
is:starred it returns all conversations where at least one message in the conversation has a ...
6
votes
Accepted
What can cause a message to be moved to Trash in Gmail?
Gmail will only move messages to Trash automatically if you have a filter set up. (Blocked addresses go to Spam.)
More than likely you have given access to your Gmail account to some third-party ...
6
votes
How to filter only emails without aliases
Use an exact phrase search without the @ symbol:
to:"name.firstname gmail.com"
I assume gmail handles @ as a special case and prepends a wildcard. By dropping the at symbol and adding quotes, it ...
6
votes
How can I exclude archived messages from the multiple inboxes view?
You've got it a bit backwards there. "Archive" simply means to remove the "Inbox" label. So, if something is "unarchived", it means it's still in your Inbox.
label:Family in:inbox
Just a note: AND ...
5
votes
Send a copy of outbound messages to another address
You can certainly do this with https://script.google.com.
The limitation would probably be that the copy wouldn't occur instantly, but on a time-based trigger. Depending on what kind of account you ...
5
votes
Is it possible to create a Gmail filter that works on headers other than From, To, Subject?
You can use the deliveredto: operator in the Has the words field when creating a filter, as @mvime indicated. However, not all email providers append Delivered-to to the email header, so a more ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gmail-filters × 487gmail × 444
gmail-labels × 127
gmail-search × 28
spam-prevention × 22
email-forwarding × 19
google-contacts × 9
email × 8
inbox-by-gmail × 8
gmail-categories × 7
google-workspace × 6
gmail-canned-response × 6
search × 5
automation × 5
priority-inbox × 5
notifications × 4
mailing-list × 4
gmail-archive × 3
alias × 3
google-apps-script × 2
google-drive × 2
google-calendar × 2
import × 2
delete × 2
sms × 2