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 refine your search by clicking the arrow in the search box.
Operator |
Definition |
Examples |
from: |
Used to specify the sender |
Example: from:amy |
to: |
Used to specify a recipient |
Example: to:david |
subject: |
Search for words in the subject line |
Example: subject:dinner |
OR |
Search for messages matching term A or term B* |
Example: from:amy OR from:david |
– |
Used to exclude messages from your search |
Example: dinner -movie |
label: |
Search for messages by label* |
Example: from:amy label:friends Example: from:david label:my-family |
has:attachment |
Search for messages with an attachment |
Example: from:david has:attachment |
list: |
Search for messages on mailing lists |
Example: list:[email protected] |
filename: |
Search for an attachment by name or type |
Example: filename:physicshomework.txt Example: label:work filename:pdf |
" " |
Used to search for an exact phrase* |
Example: "i’m feeling lucky" Example: subject:"dinner and a movie" |
( ) |
Used to group words |
Example: from:amy (dinner OR movie) Example: subject:(dinner movie) |
in:anywhere |
Search for messages anywhere in Gmail* |
Example: in:anywhere movie |
in:inbox |
Search for messages in Inbox, Trash, or Spam |
Example: in:trash from:amy |
is:important |
Search within messages that Priority Inbox considers important. |
Example: is:important from:janet |
is:starred |
Search for messages that are starred, unread, or read |
Example: is:read is:starred from:David |
has:yellow-star |
Search for messages with a particular star |
Example: has:purple-star from:David |
cc: |
Used to specify recipients in the cc: or bcc: fields* |
Example: cc:david |
after: |
Search for messages sent during a certain period of time |
Example: after:2004/04/16 before:2004/04/18 |
is:chat |
Search for chat messages |
Example: is:chat monkey |
deliveredto: |
Search for messages within a particular email address in the Delivered-To line of the message header |
Example: deliveredto:[email protected] |
circle: |
Search for messages that were sent from someone who you added to a particular Google+ circle |
Example: circle:friends |
has:circle |
Search for all messages that were sent from someone who you added to your Google+ circles |
Example: has:circle |