spaetz/offlineimap — Issue #9: Allow folders with " in them (imapsplit() function mishandles them)
Author: spaetz
Created: 2012-01-07 01:48:05+00:00
State: open

offlineimap/repository/IMAP.py IMAPRepository.getfolders does a flags,
delim, name = imaputil.imapsplit(string) on the individual results of
a listfunction call. Turns out I have a couple of folders with quotes
(0x22) in the folder name (but not around the entire thing); imapsplit
mishandles this - the quotes are backslashed by the time it sees them,
but it doesn't deal with that, and so it returns an extra field which
should be part of the name.

An example folder name of this form is: "Make" Magazine (ORA)
I have a few others as well.

See mail id:"CAOKqHY-vf47CfVDt1cvzjxCTbFEg0GqNHo6mhKGViDBg_c=A4g@mail.gmail.com"