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

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

Today, I set up a couple of Gmail accounts in mutt. I'm using offlineimap to do the syncing. I used this post as a guide. After the initial sync which took several hours, I logged into the web interface and found the Sent mail folder empty.

Is this normal? Is there a way I can set up mutt not to do that?


ui = ttyui
accounts = Gmail, ...

[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote

Repository Gmail-Local]
type = Maildir
localfolders = ~/Mail/Gmail

[Repository Gmail-Remote]
type = Gmail
remoteuser =
remotepasseval = get_keychain_pass(account='')
realdelete = no
nametrans = lambda folder: re.sub('.*Spam$', 'spam', re.sub('.*Drafts$', 'drafts',  re.sub('.*Sent Mail$', 'sent', re.sub('.*Starred$', 'flagged', re.sub('.*Trash$', 'trash', re.sub('.*All Mail$', 'archive', folder))))))
share|improve this question
offlineimap should not delete sent mail by default. perhaps it would help if you posted the relevant parts of your .offlineimaprc – jw013 Aug 6 '11 at 5:29

Have you specified folderfilter in .offlineimaprc?

If so, include '[Gmail]/Sent Mail':

folderfilter = lambda foldername: foldername in [
  # other folders you want synced ...

  #'Sent Mail',
  '[Gmail]/Sent 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.