Ticket #1485619 (closed Bugs: invalid)

Opened 15 months ago

Last modified 15 months ago

Attachment handling broken form 0.2-alpha

Reported by: thlayli Owned by:
Priority: 5 Milestone: 0.2-stable
Component: MIME parsing Version: 0.2-beta
Severity: normal Keywords: attachment
Cc:

Description

After upgrading from 0.2-alpha to 0.2-beta I started to receive notifications from users about sent attachments "not working" on the receiver side. As I researched the issue I noticed that if the filename includes scandinavian characters at least Outlook will end up showing the attachments as ATT?????.DAT instead of the real filename. If the filename didn't include any scandinavian characters the filename was shown properly and the receivers could open the attachments normally.

First I tried trunk-r1775-20080912 which had the same problem but as I reverted back to 0.2-alpha the attachments were working properly even with scandinavian characters.

Current MIME-header from 0.2-beta (and later):

--=_9307df61936e1c9552d9df2f70e203ef Content-Transfer-Encoding: base64 Content-Type: application/msword;

name*="UTF-8Yhteisty%C3%B6sopimus-pohja.doc";

Content-Disposition: attachment;

filename*="UTF-8Yhteisty%C3%B6sopimus-pohja.doc";

Working MIME-header from 0.2-alpha:

--=_b0e6763f4d21b51d01f9cbf59ae43b97 Content-Transfer-Encoding: base64 Content-Type: application/msword; name="=?UTF-8?Q?Yhteisty=C3=B6sopimus-pohja.doc?="; charset="UTF-8" Content-Disposition: attachment; filename="=?UTF-8?Q?Yhteisty=C3=B6sopimus-pohja.doc?="

Change History

Changed 15 months ago by alec

  • status changed from new to closed
  • resolution set to invalid

RFC2231 standard. Fixed in svn-trunk. See option 'mime_param_folding'

Note: See TracTickets for help on using tickets.