spaetz/offlineimap — Issue #17: mbnames writes out the nametrans'lated folder names
Author: spaetz
Created: 2012-01-08 11:40:33+00:00
State: open

I use offlineimap to sync a remote courrier IMAP account and a local
Maildir. I use nametrans to get rid of the courrier INBOX. useless
string:
nametrans = lambda foldername: re.sub('^INBOX\.*', '', foldername)
and
nametrans = lambda f: "INBOX." + f
and it works well. In fact without those two lines it does not work at
all.

My problem is that mbnames keeps the INBOX. substring in mailboxes
names, so mutt is not able to find the corresponding Maildirs.
I've got something like
Account
|-Drafts
|-Sent

on my HDD, and

INBOX.
INBOX.Drafts
INBOX.Sent

in mutt and Courrier.