INFINITE FOLDER CREATION DETECTED!
Thomas Kahle
tomka at gentoo.org
Thu Apr 18 11:57:01 BST 2013
Hi,
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"
> else:
> 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
dot.
For example INBOX/A gets translated into INBOX.A by this function.
See here for up-to-date versions of my setup:
https://dev.gentoo.org/~tomka/mail.html
https://github.com/tom111/mail-setup/blob/master/offlineimap-helpers.py
Cheers,
Thomas
> 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
>
> _______________________________________________
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
>
> OfflineIMAP homepage: http://software.complete.org/offlineimap
--
Thomas Kahle
http://dev.gentoo.org/~tomka/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20130418/1377aaf8/attachment-0001.sig>
More information about the OfflineIMAP-project
mailing list