Open tolikbotov opened 3 weeks ago
I have an ICloud account. I named a folder by 'Dubai Co Setup & Real Estate'.
ICloud server returns this name like 'Dubai Co Setup &- Real Estate', i.e. it encodes '&' to '&-'.
'com.sun.mail.imap.protocol.ListInfo:99' has support such names, but it relates on 'utf8' support flag.
I believe, this flag is set if an imap server has 'UTF8' capability. But Library do nothing to detect it.
I believe, library should detect 'UTF8' support and if it's missing set flag 'utf8' in IMAPResponse as 'false'.
Library ignores capability and set supportsUtf8 as true in any case.
Library should replace ImapClientRespDecoder or provide a way to tell it - utf8 is not supported.
I want to see right folder name.
Oh I missed something? Can you help?
Description
I have an ICloud account. I named a folder by 'Dubai Co Setup & Real Estate'.
ICloud server returns this name like 'Dubai Co Setup &- Real Estate', i.e. it encodes '&' to '&-'.
'com.sun.mail.imap.protocol.ListInfo:99' has support such names, but it relates on 'utf8' support flag.
I believe, this flag is set if an imap server has 'UTF8' capability. But Library do nothing to detect it.
Expected Behavior
I believe, library should detect 'UTF8' support and if it's missing set flag 'utf8' in IMAPResponse as 'false'.
Actual Behavior
Library ignores capability and set supportsUtf8 as true in any case.
Possible Fix
Library should replace ImapClientRespDecoder or provide a way to tell it - utf8 is not supported.
Steps to Reproduce
Context
I want to see right folder name.
Your Environment