Gmail is a Google platform, so of course, it has powerful search features. But some of Gmail’s search features are hidden and don’t appear in the “Search Options” pane. Learn Gmail’s search tricks to master your massive inbox.
You can also create filters from any search you perform. Filters automatically perform actions on incoming emails, such as deleting them, applying a label, or forwarding them to another email address.
RELATED: How to Search Gmail by Date
Instead of just typing a search query in the search box, click the “Show Search Options” icon to reveal more search options.
The search options dialog exposes many of Gmail’s basic search functions. But there are some search options that don’t appear in this dialog.
You can skip this dialog for basic searches. Perform a search with the search options dialog and you’ll see the search operator you’ll need in the future. For example, if you type
youtube.com into the search box, you’ll see the following search appear:
Useful search operators you can access from the basic dialog include:
- to: – Search for messages sent to a specific address.
- from: – Search for messages sent from a specific address.
- subject: – Search the subject field.
- label: – Search within a specific label.
- has:attachment – Search only the messages that have attachments.
- is:chat – Search only chats.
- in:anywhere – Also search for messages in Spam and Trash. By default, Gmail’s search ignores messages in these two folders.
To put together more complicated searches, you’ll need to know the basics:
- ( ) – Brackets allow you to group search terms. For example, searching for
subject:(how geek)would only return messages with the words
geekin their subject field. If you search for
subject:how geek, you’d get messages with
howin their subject and
geekanywhere in the message.
- OR – OR, which must be in capital letters, allows you to search for one term or another. For example,
subject:(how OR geek)would return messages with the word
howor the word
geekin their titles. You can also combine other terms with the OR. For example,
from:howtogeek.com OR has:attachmentwould search for messages that are either from howtogeek.com or have attachments.
- ” “ – Quotes allow you to search for an exact phrase, just like in Google. Searching for
"exact phrase"only returns messages that contain
exact phrase. You can combine this with other operators. For example,
subject:"exact phrase"only returns messages that have
exact phrasein their
- – – The hyphen, or minus sign, allows you to search for messages that don’t contain a specific term. For example, search for
-from:youtube.comand you’ll only see messages that aren’t from youtube.com.
You can access many search operators from the search options dialog, but some are hidden. Here’s a list of the hidden ones:
- list: – This operator allows you to search for messages on a mailing list. For example,
list:email@example.com return all messages on the
- filename: – This operator allows you to search for a specific file attachment. For example,
file:example.pdfwould return emails with a file named
- is:important, label:important – If you use Gmail’s priority inbox, you can use these operators to search only important or unimportant emails.
- has:yellow-star, has:red-star, has:green-check, and so on. – If you use different types of stars (see the “Stars” section on Gmail’s “General” settings pane), you can search for messages with a specific type of star.
- cc:, bcc: – The
bcc:features allow you to search for messages where a specific address was carbon copied or blind carbon copied. For example,
cc:firstname.lastname@example.org messages where
email@example.com carbon copied. You can’t use the
bcc:operator to search for messages where you were blind carbon copied, only messages where you bcc’d other people.
- deliveredto: – This operator looks for messages delivered to a specific address. For example, if you have multiple accounts in the same Gmail inbox, you can use this operator to find the messages sent to a specific address. Use
deliveredto:firstname.lastname@example.org find messages delivered to
Create a filter to automatically perform actions when a message matches a specific search.
To create a filter, click the “Show Search Options” icon. Enter the search information you wish to use for your filter and then select “Create filter.”
Select an action from the options and click the “Create Filter” button.
You can manage your filters from the “Filters and Blocked Addresses” pane on Gmail’s “Settings” page.
Filters can also be used to block email addresses. Check out our guide to learn more.
- › How Email Bombing Uses Spam to Hide an Attack
- › How to Stop Amazon’s Email, Text, or Smartphone App Notifications
- › The Best Tips and Tricks for Using Email Efficiently
- › Gmail Was the Best April Fools’ Day Joke of All Time
- › How to Use Google to Search Only Your Emails, Events, and Other Stuff
- › How to Find Archived Emails in Gmail
- › How to Automatically Archive or Delete Old Emails in Gmail
- › How to Update Audio Drivers on Windows