Gmail’s sophisticated search capabilities allow you to quickly locate specific items by utilizing search operators and other search terms. Search operators, which are made up of special letters and parameters, are used to fine-tune a search. It is advantageous to have robust search capabilities in Gmail, especially given the large amount of storage space available. Without this feature, manually searching through your archived emails would be nearly impossible.
The following operators can be used to limit down your search results when a simple text query in the search bar at the top of the Gmail screen returns an excessive amount of emails. You can narrow your search results by subject line, date range, and sender, among other factors.
- Simple Searches
- Gmail Search Options.
- Gmail Search Operators
Simple Searches
Start looking for messages in Gmail by entering search phrases in the Search mail area at the top of the page.
Gmail Search Options
Create criteria to filter the results when a simple search provides an excessive number of results or results that are not relevant to the search query. To open an advanced search window, select Show search options from the drop-down arrow next to the Gmail search field and press Enter.
- You can search for senders’ email addresses and names by typing their names into the From box.
- Using the To field, look for the names and addresses of those who will be receiving the package.
- Search for email subjects by entering them in the Subject area.
- Using the Has the words field, search the body text for the terms you want to use.
- Using the Doesn’t have field, look for emails that do not contain particular words in the body of the message. •
- Select the Has attachment checkbox if you only want to see emails that have an attachment.
- Using the Date inside fields, enter the date on which the message was sent (or range of dates).
The search will begin when you click Search at the bottom of this panel, which will be based on the parameters you entered.
Gmail Search Operators
If you are searching for a specific email address in the Search mail box (in both the main Gmail window and the advanced search window), you can use the following operators:
- subject: This command searches for words in the Subject line. For example, the search term topic:bahamas returns all emails with the subject line “bahamas” in them.
- from: does a search for the sender’s name and email address to determine who sent the message. It is okay to use partial addresses. The query from:heinz, for example, returns any and all messages sent by the user [email protected], including those from the user [email protected] For example, the query from:me returns all messages received from any Gmail account you’ve set in your browser.
- to: searches for names and addresses in the To line of the document. For example, the address to:[email protected] returns all messages that have been sent directly to [email protected] as the recipient (not via Cc or Bcc).
- cc: this command checks the Cc field for potential recipients. For example, the email address cc:[email protected] returns all messages that were sent as a carbon copy to [email protected] in the past.
- bcc: This function searches for addresses and names in the Bcc field. For example, the search term bcc:heinz returns all emails sent with the Bcc field set to [email protected] as the recipient.
In this case, the search is for messages that have been assigned a label. Hyphens should be used in place of whitespace characters in label names when implementing this technique. For example, the search query label:toodoo-doll returns all messages that have been labeled with the term toodoo-doll.
- has:userlabels searches for emails that have labels that are different from those that are used by default (emails that do not contain inbox, trash, or spam labels but do contain smart labels).
- has:nouserlabels searches for messages that are missing all labels other than the ones that Gmail assigns automatically.
- is:starred does a message search for messages that have been marked as important. If you want to know what color a star or other mark is, you can use the has:operator to find out. If a message contains a yellow star, has:yellow-bang returns messages that contain a yellow exclamation point. And has:purple-question returns messages that contain a purple question mark. The has:yellow-star filter returns messages that contain a yellow exclamation point. Messages with a purple question mark are returned by has:purple-question-mark. Messages with two orange forward arrows are returned by has:orange-guillemet, and messages with a blue I are returned by has:blue-info.
- There are three types of unread messages: unread, read, and important. Identify the mails that have been classified as Priority Inbox messages.
- has:attachment searches for messages that have attachments such as files.
- filename: searches within the file names of attachments. By entering file name extensions in your search, you can eliminate specific file types from your results. For example, the search term filename:.doc returns all emails that contain the filename:.doc attachment.
- is:chat searches for chat logs in the specified directory.
Inputs a folder name and runs searches within that folder, which might be anything from Drafts to Inbox to Chats to Sent to Spam to Trash. Integrated within Anywhere are the Spam and Trash subfolders. For example, the command in:drafts retrieves all of the messages stored in your Drafts folder.
Following a specified date (in the format YYYY/MM/DD), this function locates messages that were sent on or after that date. For example, the search term after:2019/05/05 returns all messages sent or received on or after May 5, 2019.
- before: searches for messages that were sent before a specific date. For example, the search term before:2019/05/05 returns all messages sent or received on or before May 4, 2019.
- more significant: (or larger than:) a list of emails that are greater in size than the stated limit Bytes are the most often used unit of measurement; the letters k and m stand for kilobytes and megabytes, respectively.
Messages that are greater than the set size in bytes are found using the size filtering option. For example, the search term size:500000 returns emails that are more than 500,000 bytes in size, or half a megabyte.
- a tiny form of a word: Looks for messages that are smaller in size than the one that has been supplied. If you want to specify the size in bytes (without the suffix), you can do so, or you can use k or m as stated before.
- deliveredto: looks for emails that have the specified email address in the header line Delivered-To.