How to stop Mail.app in Lion creating an Archive folder for archiving in Gmail?

15,696

Solution 1

You could edit /Users/<username>/Library/Mail/V2/MailData/Accounts.plist setting ArchiveMailboxName to [Gmail]/All Mail then restart Mail. This seems to work for me.

Solution 2

I created an AppleScript to move messages to [Gmail]/All Mail though and then created a service so I can run it from a keyboard shortcut. The AppleScript is here: http://gist.github.com/1134751 I'm not thrilled with it's performance though.

FastScripts (http://www.red-sweater.com/fastscripts/) could be be used to assign a keyboard shortcut to the script itself - without having to turn it into a service.

Solution 3

It seems that it's easier to turn off the "Move deleted message to Trash mailbox" in the Mailbox Behaviours tab of the Gmail account preferences and continue using the usual Delete button instead of the new Archive button. This way when you delete the message it is simply removed from Inbox, i.e. in Gmail terms "archived".

Share:
15,696

Related videos on Youtube

Alexey Blinov
Author by

Alexey Blinov

Updated on September 18, 2022

Comments

  • Alexey Blinov
    Alexey Blinov almost 2 years

    Mail.app in Mac OS 10.7 added an Archive button. Unfortunately, when archiving a message in a Gmail account, instead of simply putting the message into All Mail folder, Mail.app creates a folder called Archive (in Gmail web interface this folder comes up as [Imap]/Archive) and puts the message there. Is there a way to tell Mail to put the archived messages into Gmail's All Mail instead?

    • fideli
      fideli almost 13 years
      I don't think it's a useful feature for Gmail IMAP. The mail in the inbox should already be in the All Mail folder so you're better off deleting it from the Inbox instead of archiving it.
    • Corey
      Corey almost 13 years
      I found out that a message that is moved to Archive folder will be archived for real in Gmail if I archive it again (in Archive folder).
    • Andrew Vit
      Andrew Vit almost 13 years
      I'm surprised there is no "Use this mailbox for Archive" feature like there is for Drafts/Junk/Sent/Trash.
    • Archimedes Trajano
      Archimedes Trajano over 12 years
      The Mail.app which uses the Message.framework which contains the list of mailbox names that it uses does not specify an Archive mailbox name unlike the others. strings /System/Library/Frameworks/Message.framework/Versions/Curren‌​t/Message | grep MailboxName | sort seems to not show a notion of Archive, but there is a text called "Archive" which means that it is hard coded into the binary.
  • Schof
    Schof almost 13 years
    This isn't what the original poster (and myself) are looking for. Doing it your way means that no messages are deleted in normal operations. There's a number of messages that I DO want to delete, and others that I want to archive.
  • bot47
    bot47 about 12 years
    You sure? This answer comes from the original poster :p
  • gerrit
    gerrit about 11 years
    this works great! just replace the "sj26" with your username
  • Khakionion
    Khakionion almost 11 years
    Yeah, this is perfect until a certain future version of OS X is released, then maybe Apple will fix the behavior. Please mark this as accepted.