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 ...
Eric Warnke's user avatar
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 *=...
Altered-Ego's user avatar
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 @ ...
ale's user avatar
  • 52.1k
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 ...
ale's user avatar
  • 52.1k
13 votes

Create a Gmail filter for Calendar Notifications

Perhaps the simplest way is Has the words: "google.com/calendar"
user80551's user avatar
  • 231
12 votes

How to specify "OR" conditions for Gmail filter

You can group them: {"Words1" AND "Words2"} OR {"Words1" AND "Words3"} etc...
David Sénécal's user avatar
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+...
ale's user avatar
  • 52.1k
11 votes

Create a Gmail filter for Calendar Notifications

All calendar invites have a file attached: filename:invite.ics
Kousha's user avatar
  • 211
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() ...
Rubén's user avatar
  • 44k
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 ...
ale's user avatar
  • 52.1k
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 "...
Michelfrancis Bustillos's user avatar
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")
Peter W's user avatar
  • 181
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 ...
Peter Jaffray's user avatar
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."
LemmingInstinct's user avatar
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 ...
ale's user avatar
  • 52.1k
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 ...
Folk's user avatar
  • 1,967
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 ...
Folk's user avatar
  • 1,967
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 ...
2001herne's user avatar
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 ...
No Refunds No Returns's user avatar
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 ...
Rubén's user avatar
  • 44k
6 votes

Gmail filter with regular expressions

Filtering "From" with: *@someemail.com OR *@someothermail.com Works for me.
Lucas Bustamante's user avatar
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|...
Ralphilius's user avatar
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 @...
ale's user avatar
  • 52.1k
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 ...
mhoran_psprep's user avatar
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 ...
ale's user avatar
  • 52.1k
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 ...
jgawrych's user avatar
  • 161
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 ...
ale's user avatar
  • 52.1k
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 ...
MZ_Guy's user avatar
  • 163
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 ...
P. B.'s user avatar
  • 151

Only top scored, non community-wiki answers of a minimum length are eligible