64 votes

Create a Gmail filter for Calendar Notifications

Ever since the recent Google Calendar changes, I've found this updated filter to work best. As a search: subject:("invitation" OR "accepted" OR "rejected" OR "...
user avatar
52 votes

Is it possible to create a Gmail filter that works on headers other than From, To, Subject?

go to https://script.google.com and create a new Google Apps Script select the "Create script for Gmail" option this will create a script project this will create a script called Code.gs this will ...
user avatar
  • 641
36 votes

Create a Gmail filter for Calendar Notifications

For those looking to filter all calendar proposals (no updates) from:(-me) {filename:vcs filename:ics} has:attachment
user avatar
28 votes

How to specify "OR" conditions for Gmail filter

Gmail accepts several syntaxes: apple OR orange apple | orange {apple orange} Personally, I like to use the curly braces because it is nice and concise. The following are all equivalent: from:{...
user avatar
  • 381
24 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:name@company.com -from:name2@company.com or you ...
user avatar
23 votes

Creating a filter in Gmail that applies more than one label

The post from artlung has the right idea (the easiest way to do this is to edit the filters as XML), but the XML code he posts actually does not do what the original poster requested. The original ...
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 @ ...
user avatar
  • 51.2k
20 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 *=...
user avatar
16 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 ...
user avatar
  • 51.2k
13 votes

Create a Gmail filter for Calendar Notifications

Perhaps the simplest way is Has the words: "google.com/calendar"
user avatar
  • 231
11 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+...
user avatar
  • 51.2k
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() ...
user avatar
  • 42k
10 votes

How to specify "OR" conditions for Gmail filter

You can group them: {"Words1" AND "Words2"} OR {"Words1" AND "Words3"} etc...
user avatar
10 votes
Accepted

How to block a set of related email addresses in Gmail

Instead of separating multiple email addresses with a comma, you should separate them with OR, as per this Gmail help document. Matches: from:(s******9@icloud.com OR s*******9@gmail.com OR s*******m@...
user avatar
  • 4,708
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 "...
user avatar
9 votes
Accepted

Composing a Gmail filter: "on this list and not to me"?

I would expect that {list:mylist1 list:mylist2} -to:myname@example.com would do what you want. The - indicates a negative match, so should match messages from either of the lists where your email ...
user avatar
  • 51.2k
8 votes

How to create filters in Gmail with "OR" condition in "Has the words"

If the word(s) has(ve) spaces in them, we enclose with double quotes like (("An Apple" OR "Three Apples"))
user avatar
  • 181
7 votes

How to filter by messages, not by conversation?

I had a similar problem, the only way around it was to... first disable THREAD views, which you can do in Gmail > Settings > Conversation View => Turn off. After you do that you can search/create ...
user avatar
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 ...
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."
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 ...
user avatar
  • 51.2k
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 ...
user avatar
  • 1,956
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 ...
user avatar
  • 1,956
6 votes

How can I set a Gmail filter that finds email sent "only to me"?

This new answer works if one of the other recipients has a top level domain that is common-ish and different from yours. Aaron's answer appears not to work, for two reasons. The first is that google ...
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 ...
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 ...
user avatar
  • 42k
6 votes

Create a Gmail filter for Calendar Notifications

All calendar invites have a file attached: filename:invite.ics
user avatar
  • 161
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|...
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 @...
user avatar
  • 51.2k

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