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

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

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

You must log in to answer this question.

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