INFINITE FOLDER CREATION DETECTED!

Douglas Campos qmx at qmx.me
Thu Apr 18 11:03:47 BST 2013


I'm facing the same problem on my setup, any clues?

import re

def oimaptransfolder_qmx(foldername):
    if(foldername == "INBOX"):
        retval = "qmx"
    else:
        retval = "qmx." + re.sub('^INBOX\.', '', foldername)
    retval = re.sub("/", ".", retval)
    return retval

def localtransfolder_qmx(foldername):
    if(foldername == "qmx"):
        retval = "INBOX"
    else:
        # remove leading '.qmx'
        retval = 'INBOX.' + re.sub("qmx\.", "", foldername)
    retval = re.sub("\.", "/", retval)
    return retval

I'm wondering if shouldn't we provide means for offlineimap to tell what
would be the expected localtrans...

https://gist.github.com/5411580

-- 
qmx




More information about the OfflineIMAP-project mailing list