Open Bug 230223 Opened 21 years ago Updated 2 years ago

'data' fork of Apple Double encoded file uses 'raw' 8bit characters in Content-Disposition header

Categories

(MailNews Core :: Internationalization, defect)

All
macOS
defect

Tracking

(Not tracked)

People

(Reporter: jshin1987, Unassigned)

Details

(Keywords: intl)

I received an email from Mac OS X thunderbird user [1] to which three jpeg
images and one MS Word file were attached. Its strucutre is: 

---------------Cut-----here
Content-Type: multipart/mixed;
 boundary="------------060605060903060401060002"

Content-Type: text/plain; charset=EUC-KR

Content-Type: image/jpeg; x-mac-type="0"; x-mac-creator="0"; name="Picture 1.jpg"
Content-Disposition: inline; filename="Picture 1.jpg"

two more jpeg images

Content-Type: multipart/appledouble;
 boundary="------------ad030601020400050103030706"; x-mac-type="5738424E";
x-mac-creator="4D535744";
 name="=?UTF-8?B?4YSL4YWh4Yar4YSC4YWn4Ya8LmRvYw==?="
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
 filename="=?UTF-8?B?4YSL4YWh4Yar4YSC4YWn4Ya8LmRvYw==?="

Content-Type: application/applefile
Content-Transfer-Encoding: base64

Content-Type: application/octet-stream; name="¾È³ç.doc"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="¾È³ç.doc"

---------Cut-------here--------------

There are two problems here. One is C-D header uses raw 8bit characters in the
current message encoding (set in View | Character Coding). As is well known
among mailnews module owners, RFC 2231 encoding is the standard, but it's off by
default perhaps for the compatibility with non-standard compliant mail clients
that don't understand RFC 2231. However, at least RFC 2047 encoding should be
used. The other (of which I'm less sure) is that the resource fork part doesn't
have C-D (with filename) headerfield and 'name' parameter  (that begins with '%'). 

BTW, Mozilla on Linux listed only three jpeg images and didn't list the last
attachment in AppleDouble (MS Word file). 

[1] I'm filing this under mailnews product instead of thunderbird because there
isn't any relevant component listed for thunderbird. This could well be filed
under composition component of mailnews.
Product: MailNews → Core
Product: Core → MailNews Core
QA Contact: marina → i18n
Assignee: smontagu → m_kato
Hardware: PowerPC → All
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
Assignee: m_kato → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.