文章来自
Google Operating System在gmail中每个内置文件夹(视图)都是一个标签.所以如果你想查看所有收件箱中的未读邮件,你可以这样使用 label:inbox label:unread
当然你可以联合使用这些内置标签和你自己的标签形成一个有趣的查询.但是很快你就发现了这些查询是那么得长,还那么难写.不过实际上你不需要这样做.你可以使用l来代替label.这样前面那个查询可以这样写 l:inbox l:unread
如果你认为这个还是很长,那么Gmail提供了这个特殊标签的快捷方式
^b chats ^f send mail ^i inbox ^k trash ^r draft ^s spam
^t starred messages ^u unread mail
这样我们开始写的查询语句就可以这样写了l:^i l:^u.那么如果查询所有不在收件箱的未读邮件呢?啊哈,你可能想到了就是-l:^i l:^u.就是在不的标签前面加上一个-号就行了
相信这篇文章对你有益
英文原文
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.