Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whenever I use mutt, it saves my sent messages in a Gmail folder it created called "[Imap]/Sent". Similarly, instead of going to the Trash, archived messages end up in a new folder called "[Imap]/Trash". What I'd like to do is get mutt to save my sent messages in the default Gmail folder called Sent Mail, and to have archived messages go to the default gmail folder called Trash. Is there a way to do that?

Here is what I think is the relevant part of my .muttrc:

set folder=imaps://
set spoolfile=imaps://
set record=imaps://
set postponed=imaps://
set trash=imaps://

Here is a screenshot of this redundancy problem:


share|improve this question
up vote 4 down vote accepted

I Googled the subject, and the first result suggests the following for setting up remote folders:

set folder = "imaps://"
set spoolfile = "+INBOX"
set postponed ="+[Gmail]/Drafts"
set trash = "imaps://[Gmail]/Trash"

Basically, it would like you have to include [Gmail]/ in the folder path, to access the original Gmail folders.

So, perhaps this will work:

set folder=imaps://
set spoolfile=imaps://
set record="imaps://[Gmail]/Sent Mail"
set postponed="imaps://[Gmail]/Drafts"
set trash="imaps://[Gmail]/Trash"

Note that messages in [Gmail]/Trash will be deleted after 30 days, so, as per, you might want to set your trash to All Mail instead:

set trash="imaps://[Gmail]/All Mail"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .