"On My Mac" Gmail Folders--Impossible to delete?

I know this has been mentioned here before but I see no real fix other than using Thunderbird, which we haven't done yet.


I have noticed that our Macbook Pro is quickly running out of space. There isn't much on it except a few movies, music and a lot of photos. However, even after cleaning caches and deleting items, it's still nearly full. So I started looking at Mail. I noticed that there are multiple copies of each message regardless of how many times it has been deleted. If I delete something from the MAIL inbox, it will not affect the GMAIL folders.

Here are the folders under GMAIL:

ALL MAIL

DRAFTS

IMPORTANT

SENT MAIL

SPAM

STARRED

TRASH

DELETED MESSAGES

DRAFTS (AGAIN)


I can find the same message in ALL MAIL and IMPORTANT. SENT MAIL has a copy that is also in ALL MAIL. This means that a message in the Mail inbox is on the hard drive a minimum of three times. Deleting it from the ALL MAIL folder results in it being downloaded again from the GMAIL server. Attempting to delete any of these folders gives an error.


Is the only option to stop using MAIL and change to Thunderbird, go to Safari/Firefox and delete all old mail from Gmail directly, or give up and only use Gmail through a browser.


There must be some answer to this and I'm certain that we're not the only ones experiencing it.


Thanks.

Apple IIE/Apple IIC/iMac G4/Macbook/iPad 32GB/Airport Express, Mac OS X (10.2.x)

Posted on Jul 1, 2012 6:22 PM

Reply
9 replies

Jul 1, 2012 6:39 PM in response to Cluto

Those folders are GMail's IMAP folders. You clearly don't have an understanding of IMAP and GMail's settings.


Go to gmail's website and click on the settings. Go to manage labels. From the Labels tab, you can delete any folders at the bottom of the window that you create. In the top section of the window, you can choose what mailboxes you want shown in IMAP with the column to show in IMAP. Uncheck all you do not wish to see in Mail.


The All Mail folder is a mailbox that points to messages no matter what mailbox it's in. You can bypass the deleted items folder and send messages straight to the trash by changing settings for deleting messages accounts tab or maybe the forwarding tab.


Also, looking at the mailboxes under the gmail imap folder, you have not synced any of the mailboxes to Mail's main mailboxes. That means the gmail mailboxes under the main mailboxes (sent, trash, drafts, & junk) are local mailboxes on the Mac.


I suggest you read the gmail's help to get a better understanding of how gmail functions and the different settings to make.

Jul 3, 2012 7:12 PM in response to Cluto

This is how you will remove or not show the extra mailboxes in Mail under the gmail folder.

At the gmail website, check the box for just the folders you want last column (Show in IMAP- meaning what will be listed under gmail in the sidebar). The second column (Show in Label List) is what you see at the gmail site. You can show or hide folders you want there.

User uploaded file

The bottom portion of this window (not shown) is for mailboxes you create at the gmail site besides the default listed in the top part. Unless you use any, you can delete all of them.


Your main goal from you post is to remove duplicate messages from Mail. Since all of you IMAP mailboxes are listed under the gmail imap account folder, that means none are mapped to the main mailbox (except inbox which is done by default and is why it doesn't appear under the gmail folder). That means the rest of the folders under Mail's main mailboxes are local folders. So moving messages from the inbox to the trash in mail creates a local copy in mail's trash, and a copy in gmail's imap deleted items folder. You can empyt the trash on the mac and it will not affect the message in the imap folder.


Here's where gmail is confusing. The first deletion in gmail's trash (under the gmail folder) moves the message to the deleted items folder. Deleting it again moves it to the trash. The third deletion should get rid of it.


You can choose to leave it as is and deal only with the IMAP inbox on you computer and not show any other imap folders in IMAP. That means you will have to go to the gmail site from time to time to clear out the messages there.

Here's what I suggest to make gmail act more like what you mac's main mailboxes will do and will sync at the site. You need to map the Sent Mail from the gmail folder to Mail's main Sent mailbox. To do this, select the Sent Mail under gmail's folder and highlight it. Go to Mailboxes in the menu and select Use This Mailbox for and choose Sent. This will move the Sent Mail mailbox from the gmail folder to Mail's Sent mailbox. If you have a local mailbox for that account already, it will push it out of the main to the sidebar under ON My Mac (you can check any messages in it, move or delete them, and also then delete the local mailbox).

You should repeat the process for the Trash mailbox also. I do not suggest doing that for drafts or Spam.


Once that's done, change these settings at the gmail site as per the illustration below. I think this is under the Accounts tab.

User uploaded file

After making these changes, go back to Mail's preferences under the Accounts tab. Select mailbox behavior.

Choose these settings (change your time limited to your desired):

User uploaded file

If you do this correctly, this should sync to the website and you shouldn't have duplicate messages anymore.


There is one more option you can set. In the illustration below, you can select to not keep any copies of messages locally for offline viewing. Problem is you will have to be online to view them and I don't know how slow that might be.

User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"On My Mac" Gmail Folders--Impossible to delete?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.