ideo slideshowUsing advanced search
Watch a video on using advanced search.
Advanced search operators are query words or symbols that perform special actions in Gmail
search. These operators allow you to find what you're looking for quickly and accurately. They can
also be used to set up filters so you can organize your inbox automatically. Some of the most
useful operators are listed below.
You can also use advanced search operators by clicking on Show search options beneath the
Gmail search box.
Operator Definition Example(s)
Used to Example: from:amy
from: specify the Meaning: Messages from Amy
Used to Example: to:david
to: specify a Meaning: All messages that were sent to David (by
recipient you or someone else)
Search for Example: subject:dinner
subject: words in the Meaning: Messages that have the word "dinner" in
subject line the subject
Search for Example: from:amy OR from:david
messages Meaning: Messages from Amy or from David
OR term A or
*OR must be
in all caps
Used to Example: dinner -movie
exclude Meaning: Messages that contain the word "dinner"
messages but do not contain the word "movie"
Search for Example: from:amy label:friends
messages by Meaning: Messages from Amy that have the label
*There isn't a
search Example: from:david label:my-family
operator for Meaning: Messages from David that have the label
unlabeled "My Family"
Search for Example: from:david has:attachment
messages Meaning: Messages from David that have an
with an attachment
list: Search for Example: list:firstname.lastname@example.org
messages on Meaning: Messages with the words
mailing lists email@example.com in the headers, sent to or from
Meaning: Messages with an attachment named
Search for an
by name or
Example: label:work filename:pdf
Meaning: Messages labeled "work" that also have a
PDF file as an attachment
Used to Example: "i'm feeling lucky"
search for an Meaning: Messages containing the phrase "i'm
exact phrase* feeling lucky" or "I'm feeling lucky"
n isn't taken Example: subject:"dinner and a movie"
into Meaning: Messages containing the phrase "dinner
consideration and a movie" in the subject
Example: from:amy(dinner OR movie)
Used to group
Meaning: Messages from Amy that contain either the
word "dinner" or the word "movie"
Example: subject:(dinner movie)
Meaning: Messages in which the subject contains
both the word "dinner" and the word "movie"
Search for Example: in:anywhere movie
messages Meaning: Messages in All Mail, Spam, and Trash
anywhere in that contain the word "movie"
Search for Example: in:trash from:amy
in:inbox messages in Meaning: Messages from Amy that are in Trash
in:spam Trash, or
Search for Example: is:read is:starred from:David
messages Meaning: Messages from David that have been read
that are and are marked with a star
cc: Used to Example: cc:david
bcc: specify Meaning: Messages that were cc-ed to David
the cc: or
Search for Example: after:2004/04/16 before:2004/04/18
sent during a Meaning: Messages sent between April 16, 2004 and
certain period April 18, 2004.*
of time* *More precisely: Messages sent after 12:00 AM (or
*Dates must 00:00) April 16, 2004 and before April 18, 2004.
Search for Example: is:chat monkey
is:chat chat Meaning: Any chat message including the word
Search for Example: deliveredto:firstname.lastname@example.org
messages Meaning: Any message with email@example.com
within a in the Delivered-To: field of the message header
particular (which can help you find messages forwarded from
email address another account or ones sent to an alias).
line of the