Gmail Search Special Syntax

Sunday, April 12, 2009 Posted by Aman Jain


Gmail offers a rich search syntax for searching throufgh your archived mails.

From:
Searches through the headers of your email messages archive in search of mail sent by someone matching the keyword you provide:
from:amanjain59@gmail.com

To:
Searches all messages sent to someone matching a provided keyword.
To:cooldude@yahoo.com

Subject:
Matches messages with a particular subject:
Subject:”meeting notes”

Label:
Looks for messages with a particular label applied:
Label:knitting

has:attachment
The has:attachment in a query returns only messages having one or more attachments
has:attachment

filename:
Finds messages with a attachment filename that matches a provided pattern.Used with just a file extension(eg. pdf or txt ), filename: searches all messages with attachments of a particular type.

filename:meeting_notes.txt
filename:pdf

in:
Searches a list of messages in a particular collection (folder).Acceptable values for in: are inbox,trash,spam,and anywhere .Oddly enough , sent is not a usable value for in:

eg.
in:inbox
in:anywhere

is:
Acceptable values for is: are starred,unread, and read which return starred , unread, and read messages.
Is:read

cc:
Searches messages carbon copied to particular recipients:
cc:help@yahoo.com

bcc:
Finds outgoing messages blind carbon copied to particular recipients.Note that bcc: does not work on incoming mail because there is no way to tell who's on the bcc line:
bcc:help@gmail.com

before:
Matches messages sent or received before a particular date , specified in yyyy/mm/dd format.

Before:2009/10/02

after:
Matches messages sent or recieved on or after a particular date , specified in yyyy/mm//dd format
after:2009/11/21
StumbleUpon

0 comments: