Thomas Bruederli wrote:
> Zhang Huangbin wrote:
>> Hi, list.
>>
>> Our user reported a strange issue:
>> sent mail by roundcube 0.2/0.2.1/svn version, opened in MS Outlook, the
>> attachment filename were changed:
>>
>>      Original |  Changed
>>      file.xls =>  file.doc
>>      file.doc =>  file.dat
>>
>> Is it a roundcube issue or Outlook issue?
>
> Check the message source and you'll know.

Part of message source:

Composed by roundcube 0.2-stable:
----
Content-Transfer-Encoding: base64
Content-Type: application/msword; name="Testik.xls"; charset="UTF-8"
Content-Disposition: attachment; filename="Testik.xls"
----

another:
----
Content-Transfer-Encoding: base64
Content-Type: application/msword; charset="UTF-8"; 
name*="UTF-8''HP%E6%8A%A5%E4%BB%B7.xls";
Content-Disposition: attachment; 
filename*="UTF-8''HP%E6%8A%A5%E4%BB%B7.xls";
----

Composed by roundcube-0.2.1-stable:
----
--=_64a14c887e354cbcbefc12c74e27129a
Content-Transfer-Encoding: base64
Content-Type: application/vnd.ms-excel; charset="UTF-8"; 
name*="UTF-8''HP%E6%8A%A5%E4%BB%B7.xls";
Content-Disposition: attachment; 
filename*="UTF-8''HP%E6%8A%A5%E4%BB%B7.xls";
----

another:
----
Content-Transfer-Encoding: base64
Content-Type: application/vnd.ms-excel; charset="UTF-8"; 
name*="UTF-8''HP%E6%8A%A5%E4%BB%B7.xls";
Content-Disposition: attachment; 
filename*="UTF-8''HP%E6%8A%A5%E4%BB%B7.xls";
----

It seems roundcube 0.2.1-stable detects the correct mimetype.

-- 
Best regards.

Zhang Huangbin

- Open Source Mail Server Solution for RHEL/CentOS 5.x:
  http://code.google.com/p/iredmail/

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to