Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Edit:

[general]
ui = ttyui
accounts = Gmail, ...
pythonfile=~/.mutt/offlineimap.py

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

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

[Repository Gmail-Remote]
type = Gmail
remoteuser = ...@gmail.com
remotepasseval = get_keychain_pass(account='...@gmail.com')
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
1  
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

1 Answer 1

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

 
discard

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.