Gmail filter

https://support.google.com/mail/answer/7190

How to use a search operator

  1. Go to Gmail.
  2. In the search box, type the search operator.

Search operators you can use

Tip: Once you do a search using search operators, you can use the results to set up a filter for these messages.

What you can search bySearch operator & example
Specify the senderfrom:Example: from:amy
Specify a recipientto:Example: to:david
Specify a recipient who received a copycc:bcc:Example: cc:david
Words in the subject linesubject:Example: subject:dinner
Messages that match multiple termsOR or { }Example: from:amy OR from:davidExample: {from:amy from:david}
Remove messages from your results-Example: dinner -movie
Find messages with words near each other. Use the number to say how many words apart the words can beAdd quotes to find messages in which the word you put first stays first.AROUNDExample: holiday AROUND 10 vacationExample: "secret AROUND 25 birthday"
Messages that have a certain labellabel:Example: label:friends
Messages that have an attachmenthas:attachmentExample: has:attachment
Messages that have a Google Drive, Docs, Sheets, or Slides attachment or linkhas:drivehas:documenthas:spreadsheethas:presentationExample: has:drive
Messages that have a YouTube videohas:youtubeExample: has:youtube
Messages from a mailing listlist:Example: list:[email protected]
Attachments with a certain name or file typefilename:Example: filename:pdfExample: filename:homework.txt
Search for an exact word or phrase" "Example: "dinner and movie tonight"
Group multiple search terms together( )Example: subject:(dinner movie)
Messages in any folder, including Spam and Trashin:anywhereExample: in:anywhere movie
Search for messages that are marked as importantis:importantlabel:importantExample: is:important 
Starred, snoozed, unread, or read messagesis:starredis:snoozedis:unreadis:readExample: is:read is:starred
Messages that include an icon of a certain colorhas:yellow-starhas:blue-infoExample: has:purple-star
Recipients in the cc or bcc fieldcc:bcc:Example: cc:davidNote: You can’t find messages that you received on bcc.
Search for messages sent during a certain time periodafter:before:older:newer:Example: after:2004/04/16Example: after:04/16/2004Example: before:2004/04/18Example: before:04/18/2004
Search for messages older or newer than a time period using d (day), m (month), and y (year)older_than:newer_than:Example: newer_than:2d
Chat messagesis:chatExample: is:chat movie
Search by email for delivered messagesdeliveredto:Example: deliveredto:[email protected]
Messages in a certain categorycategory:primary
category:social
category:promotions
category:updates
category:forums
category:reservations
category:purchases
Example: category:updates
Messages larger than a certain size in bytessize:Example: size:1000000
Messages larger or smaller than a certain size in byteslarger:smaller:Example: larger:10M
Results that match a word exactly+Example: +unicorn
Messages with a certain message-id headerRfc822msgid:Example: rfc822msgid:[email protected]
Messages that have or don’t have a labelhas:userlabelshas:nouserlabelsExample: has:nouserlabelsNote: Labels are only added to a message, and not an entire conversation.

One thought on “Gmail filter

Leave a Reply

Your email address will not be published.