need nametrans help

Roy Kidder rkidder at thirtyonegifts.com
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',
                                  f))

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

Thanks,
Roy




More information about the OfflineIMAP-project mailing list