Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.