How can I fix the archive button in Mail.app for Gmail?

When clicking the archive button on a Gmail message in Mail.app on Ventura, instead of moving the email from the inbox to the archive, the email stays in the inbox.


When I select an email in my Gmail inbox in Mail.app then click the archive button, I want the email to move out of the inbox and into the archive folder. However, when I click archive, the selected row in the mail view goes down to the next email but the “archived” email stays visible in Mail.app and in Gmail web view.


Things I've Checked

  1. Mail.app archive button works for other email accounts, tested with an outlook.com address
  2. “Mail -> Settings -> Accounts -> Google -> Mailbox Behaviours tab -> Archive Mailbox” is set to “[Google Mail]/All Mail”




Posted on Jun 23, 2023 11:26 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 23, 2023 11:31 AM

Root Cause

Gmail doesn't have folders like a normal email service, it has labels instead. One message can appear in multiple labels. IMAP mail clients like Mail.app see these Gmail labels as folders, this means one message can appear in multiple folders.


This is what's causing the behaviour seen here.


Solution

In the Gmail website:


  1. Go to: Settings (gear icon) -> Show All Settings -> Labels -> All Mail
  2. De-select "show in IMAP"
  3. Set to "Hide"


Go back to Mail.app and test that archive works as expected. NB: go to Mailbox menu -> Synchronise Gmail to force your action to update on the gmail server immediately

2 replies
Question marked as Top-ranking reply

Jun 23, 2023 11:31 AM in response to ScottishCraig

Root Cause

Gmail doesn't have folders like a normal email service, it has labels instead. One message can appear in multiple labels. IMAP mail clients like Mail.app see these Gmail labels as folders, this means one message can appear in multiple folders.


This is what's causing the behaviour seen here.


Solution

In the Gmail website:


  1. Go to: Settings (gear icon) -> Show All Settings -> Labels -> All Mail
  2. De-select "show in IMAP"
  3. Set to "Hide"


Go back to Mail.app and test that archive works as expected. NB: go to Mailbox menu -> Synchronise Gmail to force your action to update on the gmail server immediately

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.

How can I fix the archive button in Mail.app for Gmail?

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