Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mail.app delete messages to Gmail archive

This is effectively a duplicate of https://discussions.apple.com/thread/251414618, but I couldn't continue the conversation there.


How can we configure Gmail and Mac OS Mail.app to NOT delete messages on the server when messages are deleted on the client (e.g. they are still in "All Mail"), but DO remove them from the Inbox?

Posted on Mar 16, 2021 9:27 AM

Reply
Question marked as Best reply

Posted on Mar 16, 2021 9:41 AM

After working with it a bit, here is what I got to work:


To get messages to be archived instead of being deleting using gMail and Mac OS Mail.app (tasks underlined):


  • Gmail: Create a new trash folder for IMAP clients that won't delete messages
    • Settings > See All Settings > Forwarding and POP/IMAP > IMAP access
      • Enable IMAP and Save Changes
    • Settings > See All Settings > Labels > Labels
      • Create new label called "IMAP Trash"
      • Enable "Show in IMAP"
      • Select "hide" in label list
    • Settings > See All Settings > Labels > System Labels
      • Disable "Show in IMAP" for "Trash" system label
  • Mac OS Mail : send messages to new trash folder upon delete
    • Settings
      • Mailbox Behaviors
  • Set Trash mailbox to "IMAP Trash"
  • Note: This will change the "IMAP Trash" label to "Trash" within Mail.app (it is still called "IMAP Trash in Gmail). If you didn't "hide" the system "Trash" label to IMAP within Gmail settings, you will see two "Trash" folders in Mail.app now.
  • Ensure "Erase Deleted Messages" is set to "Never"
    • Viewing
      • Enable "Move discarded messages into Archive"
      • Note: "All Mail" in Gmail is called "Archive" on Mail.app


Resulting message lifecycle in Mail.app:


  1. A message is received
  2. It exists in "Inbox" folder
  3. It exists in the "Archive" folder ("All Mail" on gMail)
  4. The message is deleted
  5. It is no longer in the Inbox
  6. It is still in the Archive Folder ("All Mail" on gMail)
  7. It is in the "Trash" folder ("IMAP Trash" on gMail)
  8. It will NOT be automatically deleted by gMail


1 reply
Question marked as Best reply

Mar 16, 2021 9:41 AM in response to eprothro

After working with it a bit, here is what I got to work:


To get messages to be archived instead of being deleting using gMail and Mac OS Mail.app (tasks underlined):


  • Gmail: Create a new trash folder for IMAP clients that won't delete messages
    • Settings > See All Settings > Forwarding and POP/IMAP > IMAP access
      • Enable IMAP and Save Changes
    • Settings > See All Settings > Labels > Labels
      • Create new label called "IMAP Trash"
      • Enable "Show in IMAP"
      • Select "hide" in label list
    • Settings > See All Settings > Labels > System Labels
      • Disable "Show in IMAP" for "Trash" system label
  • Mac OS Mail : send messages to new trash folder upon delete
    • Settings
      • Mailbox Behaviors
  • Set Trash mailbox to "IMAP Trash"
  • Note: This will change the "IMAP Trash" label to "Trash" within Mail.app (it is still called "IMAP Trash in Gmail). If you didn't "hide" the system "Trash" label to IMAP within Gmail settings, you will see two "Trash" folders in Mail.app now.
  • Ensure "Erase Deleted Messages" is set to "Never"
    • Viewing
      • Enable "Move discarded messages into Archive"
      • Note: "All Mail" in Gmail is called "Archive" on Mail.app


Resulting message lifecycle in Mail.app:


  1. A message is received
  2. It exists in "Inbox" folder
  3. It exists in the "Archive" folder ("All Mail" on gMail)
  4. The message is deleted
  5. It is no longer in the Inbox
  6. It is still in the Archive Folder ("All Mail" on gMail)
  7. It is in the "Trash" folder ("IMAP Trash" on gMail)
  8. It will NOT be automatically deleted by gMail


Mail.app delete messages to Gmail archive

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