You can quickly search for an email or emails by typing in any text in the search field and clicking the Search icon
. Be sure the pull-down menu beside the text field is set to Mail.
Simple searches can be done by just entering a word into the search field.
More advanced searches can be done by specifying a search operator. A search operator is a special keyword followed by a colon, followed by some other parameter specific to that operator. For example:
- in:inbox: The operator is "in" and the parameter is "inbox" - this returns messages which are in the folder named "inbox"
- from:someone: The operator is "from" and the parameter is "someone" - this returns messages which have the word "someone" in their email address
Let's say you wanted to find a particular image your grandmother sent you, but you can't find the email in your inbox. To run a search that would essentially "find all messages from your grandmother that are in your inbox and have an attachment" you would run a search like this: "in:inbox from:email@example.com has:attachment"
You can prefix any keyword with the word "not" to specify items that do not have that criterion -- for example not in:inbox. Search is case insensitive, meaning that "in:inbox" is the same as "in:Inbox".
The following is a list of common search operators:
- content: Specifies text that the message must contain. For example, content:bananas finds all items containing the word "bananas".
- from: Specifies a sender name or email address that is in the From header. This can be text, as in "John Smith III", an email address such as "firstname.lastname@example.org", or a domain such as "@safebolt.com".
- to: Same as from: except that it specifies one of the people to whom the email was addressed in the To: header.
- cc: Same as from: except that it specifies a recipient in the Cc: header of the message.
- subject: Specifies text that must appear in the subject header of the message. An example might be subject:"new vacation policy". Use quotes to search for exact match.
- in: Specifies a folder. For example, in:sent would show all items in your 'Sent' folder.
- has: Specifies an attribute that the message must have. The types of object you can specify are "attachment", "phone", or "url". For example, has:attachment would find all messages which contain one or more attachments of any type.
- filename: Specifies an attachment file name. For example, filename:query.txt would find messages with a file attachment named "query.txt".
- type: Specifies a search within attachments of a specified type. The types of attachment you can specify are "text", "word", "excel", and "pdf". For example, type:word "hello" finds messages with attachments that are Microsoft Word documents and searches within those attachments for the word "hello".
- attachment: Specifies any item with a certain type of attachment. For example, attachment:word would find all messages with Word attachments.
- is: Searches for messages with a certain status - for example, is: unread will find all unread messages. Allowable values are "unread", "read", "flagged", "unflagged", "sent", "draft", "received", "replied", "unreplied", "forwarded", unforwarded", "anywhere", "remote" (in a shared folder), "local", "sent", "invite", "solo" (no other messages in conversation), "tome", "fromme", "ccme", "tofromme". "fromccme", "tofromccme" (to, from cc me, including my aliases)
- date: Use this keyword to specify a date, using the format that is default for your browser's locale (for US English the format is mm/dd/yyyy). For example, date:2/1/2017 would find messages dated February 1, 2017. The greater than (>) or less than (<) symbols can be used instead of after or before. >= and <= are also allowed.
- after: Specifies mail sent after a certain date. For example, after:2/1/2017 specifies mail sent after February 1, 2017.
- before: Same as after: except specifies mail sent before the specified date.
- size: Specifies messages whose total size, including attachments, is a specified number of bytes, kilobytes, or megabytes For example, size:12 kb would find messages that are exactly 12K in size. The greater than (>) or less than (<) symbols can be used instead of bigger or smaller.
- larger: Similar to size: except specifies greater than the specified size.
- smaller: Similar to size: except specifies smaller than the specified size.
- tag: Finds messages which have been tagged with a specified tag. For example, tag:amber will find message that have a tag called "amber" applied.
The asterisk (*) can be used as a wildcard in a search to find content that contains words that have similar spellings.
Use the asterisk * as a wildcard after a prefix. For example, the search string do* returns items such as do, dog, door, etc....
Your searches can even be saved! To save a search, first run your search and then simply click Save on the search bar.
You will be prompted to give your search a name. Once you've named your search, you can look up saved searches in the advanced search mode and quickly run them. For example, let's say you often need to find emails you've exchanged with your grandmother. You would type "from:email@example.com" in the search field, and click Save. You could name your search "Grandma's Emails" and quickly run that search whenever you like from the Advanced Search menu!