Friday, December 30, 2011

Gmail - Get All Emails Using Filters (and Gmail operators)

While creating a filter to forward emails from one gmail account to my personal account I noticed the Google team added a "Test Filter" form.  In my case, I wanted to send everything to myself so I knew when emails came in I needed to be alerted of.  Honestly, I want to see it all and decide what's important and what's not on the fly. In the From field I tried the wildcard * and tested it.  As expected, all results were returned.  What was interesting, however, was the search box in the top of the web client.  It show this: from:(*).  In the past I had tried various from: searches in the search box, but, not wildcarding.  Now, If I was to display specific emails I will combine operators.  Other operators include:
  • after date:
  • All Mail: label
  • AND
  • before date:
  • Chats - label
  • Drafts
  • filename: - operator
  • has:
  • has calendar event:
  • has documents:
  • has photos:
  • has videos:
  • is:
  • in:
  • label:
  • list:
  • OR
  • Priority Inbox - label
  • Receipts - label
  • Sent Mail: label
  • Spam
  • Starred
  • Subject:
  • Trash
  • Travel
  • Work
You can determine if something is a label by typing the first letter in and seeing if a word (and the phrase "label") appear in the text box.  For instance, if you type "la", Javascript will automatically prefill label: - operator.

0 comments:

Post a Comment