Update (June 2013): This no longer works. Try another trick.
When you search for something in Gmail and there are many search results, you'll see a vague message like "1 - 20 of thousands". In other cases, Gmail shows that there are about 80 results, when the real number is 78. But what if you want to find the actual number of results instead of an estimation? If you have the new version of Gmail, it's really easy to add more precision thanks to permalinks.
(Small digression: I'm sure that Opera users will stop reading this post because Gmail 2.0 doesn't support their browser, but the User JS file from this page fixes the compatibility issues and you can use the tip below. )
Let's say you want to find the number of conversations that contain Google, but don't have the label .Comments. You will search for:
google -label:.Comments (a shorter query: google -l:.Comments)
The address bar should display this URL:
http://mail.google.com/mail/#search/google+-l%3A.Comments
If you go to the next pages of search results, you'll notice that Gmail appends /p2, /p3 etc. to the previous URL. To see the actual number of search results, force Gmail to display an arbitrary page. For example, you can display the page #1000 if you estimate that the number of search results is smaller than 20*1000=20000. Just append /p1000 to the address and get something like:
http://mail.google.com/mail/#search/google+-l%3A.Comments/p1000
or more generally:
http://mail.google.com/mail/#search/YOURQUERY/p1000
Unfortunately, if you manually modify the address, Gmail no longer updates it when you go to a different section, so you need to refresh the page.
Subscribe to:
Post Comments (Atom)
It's worth nothing you can do that in other Google searches as well.
ReplyDeleteLike this week I used the same trick to try to quantify source code with various software licences on Google Code Search: blog post. Conclusion: Google's estimates can be out by a factor of 10,000! (That was the case with the Apache licence.)
Glad to hear that the user JS is working well for you ;-)
ReplyDeleteGood one. I like that you accept drawback of your software. And best part is that you are trying to improve that.
ReplyDeleteGoogle's estimates can be out by a factor of 10,000! (That was the case with the Apache licence.)
ReplyDeleteI've been told that the estimates are off because it takes so long for Google to update all of their servers, being that they have an enormous amount.
ReplyDelete