I’ve been experimenting more with Gmail after my disappointing Zimbra experience (I haven’t totally written Zimbra off though, I’m just letting it mature in the cask for a while – the ultimate winner will be the first to allow offline use of Contacts and provide reliable contact synchronization). Anyway, aside from Gmail not having a decent way to delete a message without get kicked back to the message list (instead of just going to the next message like every other email client on the planet, there is also the annoying fact that in Gmail there’s no button to just view messages with no label. In their wisdom, the Google people no doubt think that I’ll be using their wonderful search engine to just search and find the messages I want and locate the relevant message. But as the great Donald Rumsfeld said, there are known unknowns (I can search for those) and unknown unknowns like the credit card bill that I totally forgot about and which I could search for if I knew I had forgotten about it, but then I wouldn’t have forgotten about it and wouldn’t need to search for it now would I?
So the way you find emails that have fallen through the cracks in Gmail is simple, but os so cumbersome. You have to do a negative search for every label you use. That is, you look for messages not labelled Labe1 and not labelled Label2 and so on. There’s no way around this.
If you do this more than once, typing in all your labels in the arcane syntax Gmail uses gets old. So what I’ve done is simply create a shortcut, which you can do quite easily and it works up until you add a new label, but then it’s just a simple matter of editing the bookmark.
So first, you have a full syntax and a compact syntax and, as far as I can tell, the compact syntax does not work with multi-word labels. So if you have Gmail labels with spaces in them, you have to use the full syntax and substitute hyphens for spaces.
So let’s say you have the following labels:
- Label1
- Label2
- Label Three
- Label Four
First, we want to exclude all messages that have those labels. To exclude a labeled message from your search, you use the -label: operator.
For the single-word labels, we’ll use the short syntax. This allows you to group terms within curly braces without repeating the “-label:” qualifier. So it looks like this in your Gmail search box
-label:{Label1 Label2}
Simple as that. Now for the multi-word labels, in theory as I read the instructions, I merely need to add quotes around the terms, and they should work within the curly braces. Not so for me. If you create a filter and look at the test search, that’s not how it does it either. So based on that, what I found worked for Label Three and Label Four was:
-label:Label-Three -label:Label-Four
So the entire search, with both single-word labels and multi-word labels, looks like this
-label:{Label1 Label2} -label:Label-Three -label:Label-Four
Now, that will create a URL that looks like this
http://mail.google.com/mail/#search/-label%3A%7BLabel1+Label2%7D+-label%3ALabel-Three+-label%3ALabel-Four
Now you can save this as a bookmark or shortcut and instantly access your unlabeled Gmail messages. Sometimes Gmail will add a zx parameter to your URL that looks like zx=afeoasdxou3swf that is just a random string so that if your ISP is caching data, it will see this as a unique URL and won’t give you cached data for Gmail. Since this effectively creates a single-use URL, if that appears in your URL when you do your search, you should edit it out before saving the bookmark.
Note that if a message has two labels and you are only excluding one of those, the message will still show up in your search. So if you have something labeled Label1 and Label5, and you use the search above, it will still show up in your results.
Also, sometimes a conversation that is labeled shows up unless you relabel the entire conversation, because one message is unlabeled or is still in the Inbox or whatever. If you select the whole conversation in the list view and label it, that takes care of that issue.
Filed under: Software and Computing • Web Fun
Like this post? Subscribe to my RSS feed and get loads more!