Gmail

General filter across all fields using all search terms or exact phrase

<search-string>
"<exact-phrase>"

Exact word match + and removal/negation -

+<search-string>
-<search-string>

Group multiple search terms with a single filter (eg. subject:(foo bar))

<filter>:(<search-string> <search-string>)

Match multiple criteria (Alternate syntax wrap with {})

<condition> OR <condition>
{<condition> <condition>}

Match messages where two strings are within a set distance in words (quotes to enforce order)

<search-string> AROUND <distance> <search-string>
"<search-string> AROUND <distance> <search-string>"

Example to match messages that contain 'foo' within 10 words of 'bar'

foo AROUND 10 bar

Sender/Recipient Filters

Emails from sender or to recipient

Extra recipient fields

Content and Status Filters

Subject and label fields

Has or doesn't have any user labels

Messages based on status

Location Filters

Show messages from specified location

Date Filters

Show emails that match date criteria (format: yyyy/mm/dd and other standard variations)

Combine to narrow results to specific time range

Show messages older or newer than a time period (d day, m month, y year)

Examples of time period

Attachment Filters

Show emails with an attachment or matching filename

Google drive, docs and YouTube attachments

Size Filters

Show messages larger than specified size

Show messages are larger or smaller than the specified sizes (combine for ranges)

Last updated