67% found this document useful (3 votes)
2K views

Gmail Filtering Cheatsheet

This document provides a cheat sheet for filtering emails in Gmail using search operators and filters. It describes various operators that can be used to filter emails based on criteria like the sender, recipient, date, labels, and presence of attachments. Combining multiple operators allows creating complex filters. Examples provided demonstrate how to search for emails from a specific sender, with certain labels or attachments, or within a date range. Additional resources for learning more about Gmail search operators and filters are also listed.

Uploaded by

zedsonder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
67% found this document useful (3 votes)
2K views

Gmail Filtering Cheatsheet

This document provides a cheat sheet for filtering emails in Gmail using search operators and filters. It describes various operators that can be used to filter emails based on criteria like the sender, recipient, date, labels, and presence of attachments. Combining multiple operators allows creating complex filters. Examples provided demonstrate how to search for emails from a specific sender, with certain labels or attachments, or within a date range. Additional resources for learning more about Gmail search operators and filters are also listed.

Uploaded by

zedsonder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

GMAIL FILTERING

CHEATSHEET
find this on reddit.com/r/gmail

"" (quotes):
Format: "keyword"
Example: "meeting agenda"
Result: Return only emails with the exact
quoted keyword(s).)

subject:
Format: subject:keyword
Example: subject:Google Alert
Result: Return emails with keyword(s) in
titles.

from:
Format: from:<name>
Example: from:hongkiat
(Return emails received from a specific
user, but not the email address.)

Format: from:<[email protected]>
Example: from:[email protected]
Result: Return emails received from a
specific email address.

to:
Format: to:<name>
Example: to:hongkiat
Result: Return emails sent to a specific
user, but not the email address.

Format: to:<[email protected]>
Example: to:[email protected]
Result: Return emails sent to a specific
email address.

in:
Format: in:< label name/inbox/trash/ >
Example: in:trash
Result: Return emails stored in a specific
location. If you are looking for emails that
you have no clue where it is, use
in:anywhere.

is:
Format: is:<starred/unread/read/chat>
Example: is:unread
Result: Return emails with a specific
status. E.g, Starred, unread, read emails or
even Gtalk chat logs.

cc: & bcc:


Format: cc:<name> -orcc:<[email protected]>

Format: has:attachment .pdf


Example: cc:hongkiat -orcc:[email protected]
Result: Return emails carbon copied to a
user or specific email address.

Format: bcc:<name> -orcc:<[email protected]>


Example: bcc:hongkiat -orcc:[email protected]
Result: Return emails blind carbon copied
to a user or specific email address.

Before: & after:


Format: before:<yyyy/mm/dd>
Example: before:2010/07/01
Result: Return emails before a specific
date.

Format: after:<yyyy/mm/dd>
before:<yyyy/mm/dd>
Example: after:2010/06/01
before:2010/07/01
Result: Return emails after in range of or
after specific date.

Example: has:attachment .pdf


Result: A specific general search for
emails with .pdf attachments. Return emails
only with pdf attachments.

Format: has:attachment .jpg | .jpeg |


.png | .gif | .tiff | .tif
Result: Filters all IMAGE attachments

Format: has:attachment .mp3 | .wav |


.wma | .aiff | .flac | .ogg | .gsm | .dct | .au |
.vox | .aac | .ra | .ram | .dss | .msv | .dvf |
.atrac | .mid | .ape
Result: Filters all AUDIO attachments

Format: has:attachment .mp4 | .mov |


.mng | .wmv | .avi | .webm | .mkv | .flv | .vob
| .ogv | .drc | .gifv | .mng | .qt | .yuv | .asf |
.m4p | .mpg | .mpeg | .m2v | .m4v | .3gp |
.flv
Result: Filters all VIDEO attachments

____________________________
COMBINING OPERATORS
Here are some operators that allows you to
yeild more specific and accurate results.

Format: older_than:1d
Result: Filters all email older than 1 DAY

Format: older_than:1y
Result: Filters all email older than 1
YEAR

label:
Format: label:<label name>
Example: label:Comments
Result: Return emails with a specific
label.

filename:
Format: filename:<filenameformat>
Example: filename:presentation.pdf
Result: Return emails with the exact
filename attached.

Format: filename:<format>
Example: filename:pdf
Result: Return emails that have the same
file type attached.

has:attachment
Format: has:attachment
Example: from:hongkiat has:attachment
Result: A more general search for emails
with attachments. Return emails with
attachments, regardless of file type and
format.

"-"
Format: operator:value -operator:value
Example: has:attachment -filename:zip
Result: Return emails with attachements,
filtering away those with .zip attachments.

"OR"
Format: operator:value -oroperator:value
Example: from:[email protected] -orfrom:[email protected]
Result: Return emails received from either
user(s).

"AND"
Format: operator:value AND
operator:value
Example: from:[email protected] AND
has:attachment
Result: Return only emails received from
a specific email that has an attachment.

____________________________
MORE EXAMPLES
The possibility of manipulating these
operators are quite limitless. Here are some
of the combination of search queries use
frequently or find useful.
1.

2.

3.

4.

5.

6.

7.

8.
9.

Example: in:inbox label:facebook


is:unread
Result: Search for all unread
emails labeled facebook inside
inbox.
Example: in:anywhere from:peter
Result: Search for all emails
regardless where its stored
(spam, inbox, trash) received
from anyone with the name
Peter.
Example: is:unread
after:2010/06/01
before:2010/07/01
Result: Search for all unread
mails for the month of June.
Example: from:
[email protected]
has:attachment
Result: Return all emails with
attachments sent by
[email protected]
Example: in:inbox "meeting"
Result: Search inbox for any
emails with the keyword
"meeting" in it.
Example:
from:[email protected]
has:attachment filename:zip
Result: Return only emails
received from
[email protected] with
.zip attachments.
Example: "facebook" from:@facebookmail.com
Result: Return all emails with the
keyword "facebook", excluding
those sent by facebook.com
Example: to:peter OR cc:peter
Result: Return all emails sent to
or carbon copied Peter.
Example: label:google OR
from:@google.com
Result: Return all emails received
from google.com or labeled
"google".

______________________
WHERE TO CREATE FILTERS

ADDITIONAL RESOURCES:

By selecting individual emails:

Search Google for:


gmail filters
gmail operators
filter gmail
best gmail filters
lifehacker.com/5993667/show-us-your-gmail-filter

googleguide.com/advanced_operators_reference.html

PDF Function Guides for Google:


googleguide.com/print/adv_op_ref.pdf
googleguide.com/print/calc_ref.pdf
analytics.ncsu.edu/sesug/2014/PSA-05.pdf

By going into settings:

10. Example: "meeting" is:chat

Result: Return all chat log files


with keyword "meeting" in it.

Inside Emails:

You might also like