How To Filter Your Email Using Search Operators

TeachThought 2024-08-31

How To Filter Your Email using Search Operators

by TeachThought Staff

It’s almost 2025, and I’m on what seems to be a never-ending question make email better.

As much as I ‘don’t like email,’ I don’t like phone calls either, but guess what? Sometimes, they’re necessary. It’s impressive that though email is older than the Internet itself, it remains the de facto form of modern communication in many industries. (The fact that my children pretend not to know how to use their email addresses leads me to believe that its days may be numbered.)

When computer engineer Ray Tomlinson sent the first email (to himself) in 1971, he likely never envisioned what it would one day become. Today, companies use email as a hub for project management. There are endless integrations with IFTT, cloud storage, social media, multimedia, and more. It’s also searchable, filterable, taggable, and otherwise almost endlessly customizable.

But exactly how to make those modifications isn’t always clear. It often involves third-party platforms that, at best, work, and at worst, don’t work and end up unsupported and vaporware. Search queries & operators you can use with Gmail

You can filter your Gmail search results using words or symbols called search operators. You can also combine operators to filter your results even more.

How To Use Gmail Search Terms And Operators

While you can set up your Gmail mailbox to display the results of queries like those below, the simplest way to use Gmail search terms and operators is once you know the search terms (what Gmail calls ‘search operators’).

  1. Open Gmail.
  2. In the search box at the top, click Show search options photos tune .
  3. Enter your search criteria. If you want to check that your search worked correctly, click Search to see what emails appear.
  4. At the bottom of the search window, click Create filter.
  5. Choose what you’d like the filter to do.
  6. Click Create filter.

Use a particular message to create a filter

  1. Open Gmail.
  2. Check the checkbox next to the email you want. 
  3. Click More.
  4. Click Filter messages like these.
  5. Enter your filter criteria.
  6. Click Create filter.

Edit or delete filters

  1. Open Gmail.
  2. At the top right, click Settings→See all settings.
  3. Click Filters and Blocked Addresses.
  4. Find the filter you’d like to change.
  5. Click Edit or Delete to remove the filter. If you’re editing the filter, click Continue when you’re done editing.
  6. Click Update filter or OK.

Export or import filters

If you have a backup of your filters, you can import them into Gmail or export them.

  1. Open Gmail.
  2. At the top right, click Settings → See all settings.
  3. Click Filters and Blocked Addresses.
  4. Check the box next to the filter.

Note: Only new messages will be affected when you create a filter to forward messages. Additionally, when someone replies to a message you’ve filtered, the reply will only be filtered if it meets the same search criteria.

You can read more on Google’s support page.

Google Search Operators

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

What you can search bySearch operator & example1. Specify the senderfrom:Example: from:amy2. Specify a recipientto:Example: tso:david3. Words in the subject linesubject:Example: subject:dinner4. Messages that match multiple termsOR or { }Example: from:amy OR from:david

Example: {from:amy from:david}

5. Remove messages from your results-Example: dinner -movie6. Find messages with words near each other. Use the number to say how many words apart the words can be. Add quotes to find messages in which the word you put first stays first.AROUNDExample: dinner AROUND 5 friday

Example: "secret AROUND 25 birthday"

7. Messages that have a certain labellabel:Example: label:friends8. Messages that have an attachmenthas:attachmentExample: has:attachment9. Messages that have a Google Drive, Docs, Sheets, or Slides attachment or linkhas:drivehas:document

has:spreadsheet

has:presentation

Example: has:drive has:document

10. Messages that have a YouTube videohas:youtubeExample: has:youtube11. Messages from a mailing listlist:Example: list:info@example.com12. Attachments with a certain name or file typefilename:Example: filename:pdf

Example: filename:homework.txt

13. Search for an exact word or phrase" "Example: "dinner and movie tonight"14. Group multiple search terms together( )Example: subject:(dinner movie)15. Messages in any folder, including Spam and Trashin:anywhereExample: in:anywhere movie16. Search for messages that are marked as importantis:importantlabel:important

Example: is:important 

17. Starred, snoozed, unread, or read messagesis:starredis:snoozed

is:unread

is:read

Example: is:read is:starred

18. Messages that include an icon of a certain colorhas:yellow-starhas:blue-info

Example: has:purple-star

19. Recipients in the cc or bcc fieldcc:bcc:

Example: cc:david

Note: You can’t find messages that you received on bcc.

20. Search for messages sent during a certain time periodafter:before:

older:

newer:

Example: after:2004/04/16

Example: before:2004/04/18

21. 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

22. Chat messagesis:chatExample: is:chat movie23. Messages delivered to a certain email addressdeliveredto:Example: deliveredto:username@gmail.com24. Messages in a certain categorycategory:Example: category:updates25. Messages larger than a certain size in bytessize:Example: size:1000000Messages larger or smaller than a certain size in byteslarger:smaller:

Example: larger:10M

Results that match a word exactly+Example: +unicornMessages with a certain message-id headerRfc822msgid:Example: rfc822msgid:200503292@example.com Messages that have or don’t have a labelhas:userlabelshas:nouserlabels

Example: has:nouserlabels 

Note: Labels are only added to a message, and not an entire conversation.

Note: When using numbers as part of your query, a space or a dash (-) will separate a number while a dot (.) will be a decimal. Example: 01.2047-100 is considered as two numbers. 01.2047 and 100.

How To Use Search Operators To Make Your Email Better

The post How To Filter Your Email Using Search Operators appeared first on TeachThought.