In Gmail every built-in view (e.g.: inbox, trash, read mail) is actually a label. So if you want to view all the unread messages from the inbox, you could search for: label:inbox label:unread.
You can combine these built-in labels with your labels and create interesting queries. But these queries can become long and hard to write. Fortunately, you can replace label with l and everything with still work fine. The previous query will become: l:inbox l:unread.
If you still think the query is too long, Gmail has shortcuts for the special labels.
^b chats
^f sent mail
^i inbox
^k trash
^r draft
^s spam
^t starred messages
^u unread mail
That means our query could become: l:^i l:^u. What about all the unread messages that aren't in the inbox? Search for: -l:^i l:^u.
Labels: Gmail
Axel said on May 14, 2007 9:44 AM PDT:
Those last bits definitely look like smileys :)
said on May 14, 2007 9:53 AM PDT:
Nice! I was looking for that. But why not make it a special button in gmail? Would be convenient...
said on May 14, 2007 2:35 PM PDT:
wouldn't it be nice to have a grease monkey script to create my own labels with those shortcuts? Is it possible??
You can create filter and enter that shortcut in "Has the words" field.
Ananth said on May 15, 2007 10:11 PM PDT:
:( you should have posted this a week ago. Because last week only I traversed thru 100s of pages in my inbox to select and mark-as-read over 80 unread mails scattered thruout the inbox.
l:^u will be my lifesaver :)
Note: This is the ONLY way to list out unread mails in Gmail!
Veky said on March 21, 2008 12:55 PM PDT:
> Note: This is the ONLY way to list out unread mails in Gmail!
No, it is not. You can use "label:unread" or simply "is:unread", or even "-is:read".
You must admit that l:^u is the shortest query that shows the unread messages in Gmail.