Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use Gmail Labs to remove 'All Mails' folder from Mail.app Apps
Are you bugged by the [All Mails] folder in your Gmail IMAP account showing up in Mail.App? Maybe because it shows duplicates for every search your make, or maybe because the "unread" count is doubled? Well, me too!

To my delight, I just stumbled on the Gmail Labs feature called Advanced IMAP Controls. Among other things, this feature lets selectively enable or disable labels when using IMAP to access your Gmail account -- so yes, you can get ride of the annoying [All Mails] folder (and other Gmail folders, if you wish) from Mail.App.

To access the Gmail Labs options, go to your Gmail Settings page on the Gmail website; on that page, Labs is the last tab on the right. Advanced IMAP Controls appears a fair ways down the page; enable it, then click the Save Changes button. Now click on the Labels tab, and uncheck the Show in IMAP box next to each label that you'd like to keep out of Mail.app.

Finally! It's incredible how a small thing like this can make your life easier. I hope Google will push it to the main product, as it's really useful.

[robg adds: If you'd like to try this, I suggest doing so quickly -- this hint has been in the queue since September 15th, as the Advanced IMAP Controls feature had disappeared when I originally tried to test it around that time. It's just reappeared, but it may vanish again -- the Labs features are experimental, after all. The good news is that if you enable it now, even if the feature goes away again, the Show in IMAP checkboxes will probably remain (according to Fraggle, this is what happened to his account when the feature vanished the first time).]
    •    
  • Currently 4.85 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (26 votes cast)
 
[45,651 views]  

Use Gmail Labs to remove 'All Mails' folder from Mail.app | 22 comments | Create New Account
Click here to return to the 'Use Gmail Labs to remove 'All Mails' folder from Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: Stormchild on Oct 13, '08 08:27:53AM

Good tip. I managed to do this for my @gmail.com account, but unfortunately this hasn't been unabled for custom domains yet. If you have your own domain with its mail hosted by Google, "Labs" doesn't appear in the web-based Gmail interface.

By the way, if you are looking for somewhere to host mail for your domain, Google's mail hosting is free, and quite good.



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: Fraggle on Oct 13, '08 08:34:43AM

It seems to depends. It has been enabled on our Google 4 your domain account as well.
Glad you liked it!



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: gjm25 on Oct 13, '08 08:43:19AM

There is an option under domain management to "enable advanced features for this domain" which can enable labs. However, it does not seem to be the case for every case: we have one domain where it is enabled, another where it is not.

This is a great feature if you have it! It has saved hundreds of megabytes of space on my drive.



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: greencode on Oct 13, '08 08:37:21AM

That's great but is there any way of removing the [Gmail] folder that gets left behind?



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: parraccourci on Oct 13, '08 09:24:12AM

Non english US users do not have acces to the "Labs" tab.
To enable it, you can temporaly change you accout's language (in the General tab) to English US and then put it back tou your language once the Avanced Imap lab has been enabled.

To "remove" the [Gmail] folder in mail, you can put [Gmail] as IMAP prefix in the advanced tab of your e-mail's account preferences.



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: rycardo on Oct 14, '08 10:45:26AM
A friend just let me know that sometimes [Google Mail] is used instead of [Gmail].

Use the appropriate one for your IMAP prefix and with your custom labels.

[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: dwilt on Feb 03, '10 10:15:14AM

I set the IMAP Prefix Path to [Gmail] and then this did remove the Gmail on the sidebar - nice work. However, my inbox stopped working? I noticed that the sent folder, spam and trash are all still fine and have their messages by there are no messages anymore in my inbox. I tried emailing my gmail account from another email address, and it only populates to All Mail.

any ideas?



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: rycardo on Oct 14, '08 10:04:28AM
Really great hint, and good suggestion by parraccourci.

However, be aware if you use [Gmail] as the IMAP prefix in Mail, any custom labels you use will need to be prefixed with [Gmail]/ on the gmail.com Settings -> Labels page, or they will not show up in Mail.

For example:
The label Work needs to be renamed [Gmail]/Work.

HTH,

Rycardo

[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: lras on Oct 13, '08 09:28:30AM
Thanks!
Finally I don't have to download all the mail in the 'Spam' box!

(But why wouldn't you want the 'All Mail' box? Do you really label all your mail messages?! I recommend you check out the 'Inbox Zero' talk on google video http://video.google.com/videoplay?docid=973149761529535925&hl=en)



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: haguremetaru on Oct 13, '08 11:17:00AM
As it says in the hint, when doing searches, duplicate mails show up. This in turn balloons up your Mail folder. When I used g.IMAP when it first came out, my Mail folder reached 4-5GB! And my percentage use of the account was only in the teens. This lead to a slow, cumbersome and buggy Mail.app (which is buggy enough already), enough so that I just trashed the whole thing and started from scratch. There's Inbox Zero for ya! Now that this feature has finally come out, I'm trying g.IMAP again.

[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: dvdb on Jan 31, '10 06:39:55PM

You expect us to watch a fat geek speak for 58mn?



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: zenox on Oct 13, '08 03:08:15PM

This is a GREAT hint! thanks!

I removed the "Spam" and "Starred" subfolders; now I just have "All Mail" (inside "[Gmail]") but I'm hesitating whether I should remove it or not, because moving an email to the All Mail folder seems to be the only way to achieve the 'Archive' feature of Gmail (essential for the "Inbox zero" approach)

...do you guys know any alternative to achieve the Gmail's 'Archive' feature within Mail.app?



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: GaelicWizard on Oct 13, '08 08:26:11PM

If you delete the message from your INBOX, then it remains in the [All Mail] folder.

JP




---
Pell



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: zenox on Oct 15, '08 12:25:38AM

...not true with my setup (the default)

you probably unchecked the option "Move deleted messages to the Trash mailbox", right?



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: krove on Oct 13, '08 03:41:11PM

I do not have access to Gmail Labs under settings. I have a normal @gmail.com address and have my language set to English (US). Anything else I can try.

This has always bugged me so much. Real PITA when using Mail.app with Gmail over IMAP.



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: postglock on Oct 13, '08 04:26:09PM

You also have to be using the "new" GMail view, as opposed to the old "html" view.



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: zane on Oct 13, '08 04:59:01PM
Lifehacker published a trick to enable Labs on GMail accounts that are missing it. I haven't tried it myself, but it may be worth a shot:

http://www.lifehacker.com.au/tips/2008/06/07/manually_enable_gmail_labs_in_your_account-2.html

*Note this doesn't work for "Google Apps For Your Domain" accounts.

[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: ms08 on Oct 13, '08 09:29:13PM

if one does this, wouldn't one lose the ability to search all gmail mails from inside mail.app?



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: mmnw on Oct 14, '08 12:56:59AM

The Labs Tab is not available in languages other than english. But you can enable it by switching to english temporarily. Just go to the Settings page, General (or whatever it is called in your language, "Allgemein" for example in german). Change the language to "English (US)", save. Now you should see the "Labs" tab on the left. Now follow the hint above. Afterwards you can go back to General and change the language back to where it was before.
The "show in IMAP" is still available in Labels, it's even localized (at least in german, which I tested).

Caution: It's a good idea to quit Mail.app before changing languages, because google will change the names of the folders according to your language. This can get Mail.app confused (at least it did in my case, which caused mail to start downloading thousands of messages again).



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: TheCrunge on Oct 14, '08 07:05:01AM

If Gmail was the last item in your sidebar that was getting in your way, and you have folders under "On My Mac", removing the Gmail heading will also flatten your "On My Mac" stuff, and you won't be able to use the toggle triangle to collapse those folders out of view. I fixed this by adding an RSS feed, which adds the RSS triangle toggle header, and brings back the ability to collapse "On My Mac". It seems Mail.app assumes if you have nothing else in the sidebar, then it's obvious the "On My Mac" folders are indeed on my Mac, and removes the header.

If you map your IMAP accounts correctly, each Inbox, Junk, Sent, Drafts, and Trash will contain a folder for each IMAP account. Glad to finally get rid of that All Mail bugger.



[ Reply to This | # ]
iPhone loss of functionality
Authored by: orangermac on Oct 14, '08 02:21:48PM

I'd love to use this hint for Mail, but it messes with a feature I love on the iPhone or iPod Touch: setting up the Deleted Mail Box as [Gmail]/All Mail means I can quickly archive messages by just deleting them. With proper filters setup in gmail, keeping the Inbox small and older mail organized is easy this way.



[ Reply to This | # ]
Use Gmail Labs to remove 'All Mails' folder from Mail.app
Authored by: abitgone on Oct 14, '08 02:58:03PM

There is just one issue if you do this - you lose the ability to archive an email by moving it to the All Mails folder, which is quite useful on the iPhone - but other than that, it's a solid tip if you only plan on using your IMAP access to GMail on a desktop app.



[ Reply to This | # ]