Bartłomiej Nogaś
2014-Sep-27 11:46 UTC
GETMETADATA UTF8 encoding of folder names instead of UTF7
Hello, I have dovecot 2.2.13 instance and I found that (at least for polish language) folder names in GETMETADATA command response are encoded in UTF8. Shouldn't it be converted to UTF7? Both SETMETADATA and GETMETADATA arguments have to be encoded in UTF7, the problem(?) is related only to server response example: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready. . login user pass . OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE METADATA QUOTA ACL RIGHTS=texk] Logged in . GETMETADATA "INBOX/&AVs-olaris" (/private/vendor/kolab/folder-type /shared/vendor/kolab/folder-type) * METADATA {14} INBOX/?olaris (/private/vendor/kolab/folder-type NIL /shared/vendor/kolab/folder-type {4} mail) . OK Getmetadata completed. "INBOX/?olaris" - UTF8 Best Regards,
Timo Sirainen
2014-Oct-03 14:12 UTC
GETMETADATA UTF8 encoding of folder names instead of UTF7
On 27 Sep 2014, at 14:46, Bart?omiej Noga? <bart.nogas at gmail.com> wrote:> I have dovecot 2.2.13 instance and I found that (at least for polish > language) folder names in GETMETADATA command response are encoded in UTF8. > Shouldn't it be converted to UTF7?Yes, fixed now: http://hg.dovecot.org/dovecot-2.2/rev/5446d1877c7e