INFINITE FOLDER CREATION DETECTED!
tomka at gentoo.org
Thu Apr 18 11:57:01 BST 2013
On 07:03 Thu 18 Apr 2013, Douglas Campos wrote:
> I'm facing the same problem on my setup, any clues?
> import re
> def oimaptransfolder_qmx(foldername):
> if(foldername == "INBOX"):
> retval = "qmx"
> retval = "qmx." + re.sub('^INBOX\.', '', foldername)
> retval = re.sub("/", ".", retval)
> return retval
You should check the foldernames that go into this function. What are
they? I suspect that
re.sub('^INBOX\.', '', foldername)
may be a no-op on your foldername. The logic in this function is wrong:
It seems to assume that the folder separator is "." as witnessed by
trying to remove a leading "INBOX.". Then in the next line, it assumes
that the folder sep is "/" because it is trying to replace it with a
For example INBOX/A gets translated into INBOX.A by this function.
See here for up-to-date versions of my setup:
> def localtransfolder_qmx(foldername):
> if(foldername == "qmx"):
> retval = "INBOX"
> # 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...
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> OfflineIMAP homepage: http://software.complete.org/offlineimap
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 316 bytes
Desc: Digital signature
More information about the OfflineIMAP-project