Question: can someone confirm and/or explain the following observation?
After shopping for
~/.mutt/muttrc settings over the web and digging into years-old (if not decades old) posts, I found the following mapping has an interesting side effect: it seems to get the message ARCHIVED properly for Gmail.
macro index,pager e "<delete-message><sync-mailbox>" "move message to trash"
Older posts suggested the following mapping, which all have noticeable side-effects as of creating new labels on my Gmail account in an unexpected fashion.
#macro index,pager e "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive" # ==> Keeps creating new tags like [Gmail]/AllMail and [Gmail]/AllMailMail ... #macro index,pager e "<save-message>=All Mail<enter><enter>" "Archive" # ==> Keeps creating new tags like `AllMailMail` and `AllMailMailMail` and # so on, per each archive/push. #macro index,pager A "<save-message>=Archive<enter>" "Archive Message" # ==> Well, Gmail is using "All Mails" tag/label to bin all emails for now. (Maybe I have also misread the original post from Ref #1).
List of posts that I ran into: