spaetz/next still having problems with '.'

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Sep 26 13:20:26 UTC 2011


On Fri, 23 Sep 2011 21:57:52 -0400, Dave Abrahams <dave at boostpro.com> wrote:
>     name = imaputil.dequote(name)
>   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/imaputil.py", line 41, in dequote
>     if not (string[0] == '"' and string[-1] == '"'):
> IndexError: string index out of range

Thanks, I improved the dequote function to cope being called with empty
strings (it would bail out as seen above before). 

I still need to think through how "top-level" folders should be
addressed by name though. Allowing "empty" names for the top-level still
makes sense, but it is probably most consistent to use the folder
separator ie "/" or "." for the top level.

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20110926/66d11632/attachment.pgp>


More information about the OfflineIMAP-project mailing list