I browsed the IMAP rfc 2060 with 5.1.3 and found that's the modified UTF-7 encode. and
i got a perl module : Unicode::IMAPUtf7;
like:
print Unicode::IMAPUtf7::imap_utf7_encode('R��pertoire');
print Unicode::IMAPUtf7::imap_utf7_decode('R&AOk-pertoire');
and I tested the module , it's ok.
But here's a new problem:
the maildir name encoded by imapd server can't be decode with the perl module, it
return's empty string.
you see, '����' encoded by imapd server to be : '&bUuL1Q-'
but the perl module encoded that to be '&ALIA4gDKANQ-'
so , what's wrong with that? :-(
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 11:24 AM
Subject: [courier-users] maildir folder name with encode like .&bUuL1Q- , how decode
and encode?
> hi all
>
> when I use the imap client such as OE and create a new box with chinese name,
> then the new maildir folder created on the sever. but its name changed to be
>encoded.
> the name with the form : start with & character and end with - character. every
>chinese
> word encode to be 3 ascii letters.
>
> now i am composing a webmail, and i don't know on the web , how can i echo the
>orignal
> box name and how can i encode a new one like other client?
>
> where is the clue?
>
>
> ����������������������������forehead
> ����������������������������[EMAIL PROTECTED]
> ����������������������������������2002-05-21
�٢��a{m4�*k�{O
)�X�jب�7�zZ)z��wޭ��x���v�o"���U��m���z�(��k�{ir�(������u�\~g(������ɚ�X��X���.�'��ǫ�X���(��~��zw�R{.n�+�����l��b��,���y�+���b��?�+-�w���.�'��ǫ