need nametrans help

Roy Kidder rkidder at
Fri Oct 4 22:33:25 BST 2013

I'm syncing between two IMAP servers and appear to be successfully using:

nametrans = lambda f: re.sub (f, 'INBOX.' + f, f)

however any messages in INBOX end up in INBOX.INBOX. To fix that, I've 
tried a compound translation like so:

nametrans = lambda f: re.sub (f, 'INBOX.' + f,
                                 re.sub ('^INBOX.INBOX$','INBOX',

however they still end up in INBOX.INBOX. Does anyone have any pointers?


More information about the OfflineIMAP-project mailing list