Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I'd like to sort all of my Gmail messages that don't have label, so I can process them (I miss some every now and then). I can sort by every label by clicking on it at the left, but how do you sort the unlabeled ones?

share|improve this question
add comment

6 Answers 6

up vote 22 down vote accepted

Updated: There is a blog today about updated Gmail search modifiers that allow you to do this with a simple search!

has:nouserlabels

Note: Because of Gmails threading you will have labels on some of the messages in the derived list because some messages in a thread will have labeling while some won't.

Original answer:

The Gmail advanced search help page says:

label: Search for messages by label*

There isn't a search operator for unlabeled messages

Example: from:amy label:friends
Meaning: Messages from Amy that have the label "friends"

Example: from:david label:my-family
Meaning: Messages from David that have the label "My Family"

share|improve this answer
    
Answer updated to reflect new Gmail search modifiers –  Mike Houston Nov 15 '12 at 10:11
add comment

One way you can do it is by using the minus operator on the label operator. So for example:

-label:tag-a -label:tag-b -label:tag-c

or for one-word tags:

-label:{taga tagb tagc}

This is probably only practical if you don't have a lot of labels.

Additionally, if they don't change often, you can include a link to this search so that it easily accessible from Gmail. There is a Google Labs product which puts a box of links on the left side and allows you to customize them. Just add a link to this search query and you'll be able to access your untagged messages easily.

It seems like there is a greasemonkey script which will work too. Here is the script's website. It creates a special label, Unlabelled, to search for all the conversations without a real label.

share|improve this answer
add comment

Google has the operator has:nouserlabels now. It works like a charm for what you want to do.

I don't know why it was so difficult to find for so long. Maybe it is fairly new.

share|improve this answer
2  
It is new. It was part of an update in the last week. (Also mentioned in an update to the accepted answer.) –  Al E. Nov 21 '12 at 15:53
    
Well, it doesn't work like a charm, bringing up a bunch of posts that have labels also, but I'm excited that they are finally implementing something. –  Lance Roberts Nov 26 '12 at 16:39
add comment

In my case I had lots of rubbish in the All Mail folder, mail that should have been deleted but accumulated there for some reason. I wanted to get rid of it without touching anything that was labelled including the nonuser labels. This did the trick:

has:nouserlabels -in:Inbox -in:Draft -in:Sent
share|improve this answer
    
"All Mail" is more than a label. It is literally all your mail. –  Al E. Apr 2 '13 at 23:39
    
I'd also add -is:chat –  briankb Apr 18 '13 at 4:57
add comment

This works very well, except in my experience, it only shows 20 per page, no matter what your settings are, and won't show the total number to fix, but still... got the job done! Put this in your inbox search box:

in:inbox has:nouserlabels

share|improve this answer
1  
The question was to show all messages. Your answer just limits it to the inbox. –  Jacob Jan Tuinstra Feb 18 '13 at 20:46
add comment

I would try:

has:nouserlabels -in:trash -is:chat -in:inbox
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.