Hello. If mailbox name include non latin chars, dovecot save it encode to modification UTF-7. Example "????" convert to "&BEIENQQ6BEEEQg-". If replace & to + I can decode it: <?php $str = '+BEIENQQ6BEEEQg-'; echo iconv('UTF-7', 'UTF-8', $str); ?> But I can't understand what encoding use dovecot for keywords? I set "????" (number 5) keyword: cat dovecot-keywords 0 &bcienqrbbeiepgqybdaetw-_&bdwenqrcbdoema- 1 test 2 $label1 3 $label2 4 $label3 5 &beienqq6beeeqg- but "&beienqq6beeeqg-" do not convert to "????". Why?
Quoting ??????? ???????? <public-mail at alekciy.ru>:> But I can't understand what encoding use dovecot for keywords? I set > "????" (number 5) keyword: > > cat dovecot-keywords > 0 &bcienqrbbeiepgqybdaetw-_&bdwenqrcbdoema- > 1 test > 2 $label1 > 3 $label2 > 4 $label3 > 5 &beienqq6beeeqg- > > but "&beienqq6beeeqg-" do not convert to "????". Why?Because only mailboxes are encoded in Modified UTF-7. There is no equivalent encoding for keywords. Keywords are *not* meant to be directly viewable by an end-user. Converting between a keyword and the representation displayed to the user is the job of the MUA. michael