BODYSTUCTURE response doesn't contain filename*0* info

Антон Кудинов anton.koudinov at gmail.com
Thu Feb 5 05:21:45 EST 2009


Hello!

I have some problems with Russian names of the attachments, when I send them
from Roundcube webmail client. I've contacted with developers of Roundcube
and they advised me to write here about this problem. The discussion of the
problem is here: http://trac.roundcube.net/ticket/1485705

So, the answer is: why cyrus isn't returning filename*0* info from
BODYSTRUCTURE request of the message?

I attached the part of message source and the BODYSTUCTURE response bellow:


----------------------part of the message source----------------------
User-Agent: RoundCube Webmail/0.2
Content-Type: multipart/mixed;
    boundary="=_37a84144d61f105dde703d9a267d0fba"
X-Virus-Scanned: Antivirus scanner

--=_37a84144d61f105dde703d9a267d0fba
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"

Тест
--=_37a84144d61f105dde703d9a267d0fba
Content-Transfer-Encoding: base64
Content-Type: text/plain; charset="UTF-8";
 name="=?UTF-8?Q?=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D1=8F_=D0.txt?=";

Content-Disposition: attachment;
 filename*0*="UTF-8''%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F
"
 filename*1*="%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%B9 %D0%B8
%D1%81%D0%B5%D1%80"
 filename*2*="%D1%82%D0%B5%D1%84%D0%B8%D0%BA%D0%B0%D1%82%D0%BE%D0%B2.txt";


--=_37a84144d61f105dde703d9a267d0fba--
----------------------end of the part of the message
source----------------------

----------------------BODYSTRUCTURE response----------------------
a003 fetch 6 bodystructure
* 6 FETCH (BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "UTF-8") NIL NIL "8BIT"
8 0 NIL NIL NIL)("TEXT" "PLAIN" ("CHARSET"
"UTF-8" "NAME"
"=?UTF-8?Q?=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D1=8F_=D0.txt?=")
NIL NIL "BASE64" 2166 27 NI
L ("ATTACHMENT" NIL) NIL) "MIXED" ("BOUNDARY"
"=_37a84144d61f105dde703d9a267d0fba") NIL NIL))
a003 OK Completed (0.000 sec)
----------------------end of BODYSTRUCTURE response----------------------


So, yo can see, that bodystructure response doesn't contain filename:
("ATTACHMENT" NIL) NIL), when the name of the file is in Russian.

And from dovecot-1.0 it contains:
("attachment" ("filename*0*"
"UTF-8''%D0%A3%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8")) NIL)

Can you help me with this problem?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090205/adff4cfd/attachment-0001.html 


More information about the Info-cyrus mailing list