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

apple-mailgmailmacososx lion

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?

Best Answer

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.

Related Question