This guide will instruct you regarding how to fix the Mac OSX 10.10 Yosemite Gmail bug within the Mail app. If you have an issue like this regarding Gmail in the Apple Mail app within Yosemite, try to de-activate and re-active the “Show in IMAP” for “All Mail” selection, which should fix the issue. With this said, issues like this regarding both Google’s Gmail and general exchange accounts have existed since 10.9 Mavericks. If the aforementioned solution does not help, you can follow this pretty simple workaround, which will also work in Mac OS X 10.9 Mavericks. Here’s what you should do:
First Method Steps
1. Open the native Yosemite Mail app client.
2. Use your Gmail credentials to log into your Gmail account within your web browser.
3. Click the settings wheel below your account picture and click “Settings.”
4. Click “Labels,” and turn off “Show in IMAP” for “All Mail” and then click through to your inbox.
5. Now, close the Yosemite mail client.
6. Click “Preferences” within Yosemite. Choose the “Internet Accounts” selection and delete all of your logged Gmail accounts.
7. Go back to your Gmail account within your browser. Navigate to the settings wheel and choose “Settings.”
8. Choose “Labels” and reactivate “Show in IMAP” for “All Mail” and then navigate back to your inbox.
9. Re-open the Yosemite mail client. No Gmail accounts should appear within the client.
10. Navigate to “Preferences” within Yosemite and select “Internet Accounts” and re-add all of your Gmail accounts. Please keep in mind that, depending on the number of accounts and emails within your inbox, it may take hours of days for the entirety of your email contents to populate into the Yosemite mail client. Just be patient, all of your emails should appear eventually.
Luckily, There is an Alternative Method
If the previously mentioned method does not fix the problem, you can do the following.
1. While in your Gmail settings, choose “Forwarding and POP/IMAP.”
2. Look for “IMAP access/Folder Size Limits,” then choose “Limit IMAP folders to contain no more than this many messages” and make sure that the number is 1,000.
With this method, the Mail client will cease attempting to download the entirety of your Gmail archive. This can cause problems for especially those with incredibly large Gmail archives or those who choose to use Blackberry email, as deactivating “All Mail” within the IMAP folder interferes with Blackberry email functionality. With this said, this should clear up any of the aforementioned issues and your native mail client should be fully functional once again.
Here are some other details you should know about the before mentioned problems and explanations. If you deactivate “All Mail,” you lose the ability to see the Archive All Mail folder while using the Mail client on your Mac. Instead, you will have to search for this folder by using your web browser and navigating to the folder within the Gmail web service.
This next note is just something to keep in mind. Another issue regarding Yosemite’s mail client is how message deletion works. If, while in the Mail client, you delete a message using the delete key, it is sent to the trash, which is deleted by Gmail after 30 days. Regardless of your settings within the mail client, hitting delete will ensure that the message will eventually be deleted. With this in mind, you can use Ctrl-CMD-A to archive the message, which stops the message from being deleted after 30 days.
I hope this tutorial has helped you with this annoying problem with Yosemite!