Gmail Crib Sheet


A useful(?) reference to lesser-known features of Gmail.

Search modifiers


label:x — messages with label "x" applied (use "-" for a space in names with spaces)
before:yyyy/m/d and after:yyyy/m/d — messages before/after the given date (note order of year/month/day)

Sorting labels


Gmail automatically sorts label names. Sometimes it is nice to "force" a particular sorting order. This can be done by (for example) inserting an extra punctuation mark at the start of a label name. But with Gmail labels, it is not as simple as the standard ASCII/ISO ordering that most programmers are familiar with.

Here is the sort order used in Gmail labels:

  1. Punctuation marks, in this order: _ , ; : ! ? / . ` ~ ' " ( ) [ ] { } @ $ * \ & # % + < = > |
  2. The digits 0 to 9
  3. The letters A to Z (case-insensitive)

In addition, the hyphen (-) seems to have its own sort rules. Labels are sorted in the order above, ignoring all hyphens. Then labels that are the same except for the hyphens they contain are sorted in this order:
  1. Label with no hyphens comes first.
  2. Label with a hyphen at the end comes next.
  3. Label with a hyphen second from the end comes next.
  4. And so on.
  5. Label with a hyphen at the beginning comes last.

Sometimes a picture is worth a thousand words. Here is how Gmail would sort the following labels:

Finally, note these additional quirks:

Categories


CategoryCribSheets
Research Paper Help
Writing Services
Comments [Hide comments/form]
ErUyhA <a href="http://slapcssoqent.com/">slapcssoqent</a>, [url=http://vtnwtglumldx.com/]vtnwtglumldx[/url], [link=http://qfvwfgefpurr.com/]qfvwfgefpurr[/link], http://nijoqtirzxgn.com/
-- 218-172-211-51.dynamic.hinet.net (2010-08-04 05:21:24)
qFUeg7 <a href="http://orikgzdjfzuf.com/">orikgzdjfzuf</a>, [url=http://tceyabncpvhf.com/]tceyabncpvhf[/url], [link=http://tpsjkihlzlyw.com/]tpsjkihlzlyw[/link], http://usrwkhpzoftk.com/
-- idc11.beat-fx.com (2010-08-08 09:32:31)
6GHxbi <a href="http://pholwjkftrnj.com/">pholwjkftrnj</a>, [url=http://zdsyhckszwns.com/]zdsyhckszwns[/url], [link=http://kaovhcavluqn.com/]kaovhcavluqn[/link], http://jifumxgycldg.com/
-- hosted-by.altushost.com (2010-08-14 09:41:31)
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki