Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#1488130 closed Bugs (invalid)

the attached file's chinese name cannot dispaly rightly

Reported by: kingstor Owned by:
Priority: 5 Milestone: later
Component: Core functionality Version: 0.6
Severity: normal Keywords:
Cc:

Description

it can be display rightly in outlook express.
please help to check it. Thanks a lot!

Attachments (6)

test.eml (70.5 KB) - added by kingstor 19 months ago.
send by outlook.eml (78.8 KB) - added by kingstor 19 months ago.
maildata send by outlook
send by qq.eml (72.6 KB) - added by kingstor 19 months ago.
maildata send by qqmail
send by roundcube.eml (72.0 KB) - added by kingstor 19 months ago.
maildata send by roundcube
sended by kin gmail.eml (71.5 KB) - added by kingstor 19 months ago.
maildata send by extmail
imap2 (23.1 KB) - added by kingstor 19 months ago.
imap file

Download all attachments as: .zip

Change History (15)

Changed 19 months ago by kingstor

comment:1 Changed 19 months ago by kingstor

i have done a full test of chinese filename attachement with diffrent mail sender tools (roundcube,extmail,qqmail,outlook).

so i think we can study qqmail's attached filename's structure because the compatiable is good


* attache file display and sender table

| sender tools	| outlook show | roundcube show|  extmail show | qqmail show|
| outlook       | ok           | wrong charset | winmail.dat   | ok         |
| roundcube	| ATT000034.xls| ok            | unknow.bin    | tcmime.1849.2235.2405.bin  |
| extmail	| ok           | wrong charset | ok            | ok         |
| qqmail	| ok           | ok            | ok            | ok         |

Last edited 19 months ago by kingstor (previous) (diff)

comment:2 Changed 19 months ago by kingstor


* attache file description in extmail

Content-Disposition: attachment; filename="2011翠CLINK审┬钡瞶基.xls"
Content-Type: application/vnd.ms-excel; charset="BIG5"; name="2011翠CLINK审┬钡瞶基.xls"
Content-Transfer-Encoding: base64


* attache file description in roundcube

Content-Transfer-Encoding: base64
Content-Type: application/vnd.ms-excel;
 name*0*=UTF-8''2011%E5%B9%B4%E9%A6%99%E6%B8%AFCLINK%E6%9C%BA%E6%88%BF%E7;
 name*1*=%9B%B4%E6%8E%A5%E4%BB%A3%E7%90%86%E5%83%B9.xls
Content-Disposition: attachment;
 filename*0*=UTF-8''2011%E5%B9%B4%E9%A6%99%E6%B8%AFCLINK%E6%9C%BA%E6%88%BF;
 filename*1*=%E7%9B%B4%E6%8E%A5%E4%BB%A3%E7%90%86%E5%83%B9.xls


* attache file description in qqmail

Content-Type: application/octet-stream;
	charset="gbk";
	name="=?gbk?B?MjAxMcTqz+O420NMSU5Lu/q3v9axvdO0+sDtg3IueGxz?="
Content-Disposition: attachment; filename="=?gbk?B?MjAxMcTqz+O420NMSU5Lu/q3v9axvdO0+sDtg3IueGxz?="
Content-Transfer-Encoding: base64


* attache file description in outlook

Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

Changed 19 months ago by kingstor

maildata send by outlook

Changed 19 months ago by kingstor

maildata send by qqmail

Changed 19 months ago by kingstor

maildata send by roundcube

Changed 19 months ago by kingstor

maildata send by extmail

comment:3 Changed 19 months ago by alec

  • Resolution set to invalid
  • Status changed from new to closed

This is not Roundcube issue. Use Settings / Composing Messages / Attachment names / RFC2047/2231 (MS Outlook)

comment:4 Changed 19 months ago by kingstor

thanks a lot.

i have fixed send mail issue by roundcube with chinese filename. outlook/extmail/qqmail can display the right filename now.

but the view mail isseu can not be fixed. the chinese filename sent by outlook/extmail is displayed in the wrong charset.

comment:5 Changed 19 months ago by alec

Filename in extmail's messages is encoded wrong.

comment:6 Changed 19 months ago by kingstor

if the filename in extmail's message is encode wrong, why qqmail and outlook can dispaly right?

so i don't think so. i check the qqmail's data(display right by roundcube) and extmail's data, and i found

the diffrent is filename data in extmail's message have no charset prefix in name item.
but they both have a charset item, i think we can judge the name item's charset by charset item when there is no charset prefix in name item.

i wonder if this is the solution used by outlook and qqmail for the wrong encode message?

filename data in qqmail's message(it can be display by roundcube):

Content-Type: application/octet-stream;charset="gbk";name="=?gbk?B?MjAxMcTqz?+O420NMSU5Lu/q3v9axvdO0+sDtg3IueGxz?="

filename data in extmail's message(it can not be dsplay by roundcube):

Content-Type: application/vnd.ms-excel; charset="BIG5"; name="2011�~����CLINK�������N�z��.xls"

comment:7 Changed 19 months ago by alec

Forget my last comment. It works for me. Attachment name is displayed properly in Roundcube. I think it can be malformed by IMAP server. See BODYSTRUCTURE response (enable imap_debug).

comment:8 Changed 19 months ago by kingstor

i have upload imap_debug file when i read the mail sent by outlook with roundcube

Changed 19 months ago by kingstor

imap file

comment:9 Changed 19 months ago by kingstor

i also add a test@… for your debug, the imap server:mail.kingstor.com user:test@kingstor.com password roundcube. http://mail.kingstor.com/mail to login my roundcube

Last edited 19 months ago by kingstor (previous) (diff)
Note: See TracTickets for help on using tickets.