Open Bug 184932 Opened 22 years ago Updated 2 years ago

Content-base and Content-location have line feeds, breaking images in Apple's Mail.app

Categories

(MailNews Core :: MIME, defect)

defect

Tracking

(Not tracked)

People

(Reporter: benc, Unassigned)

References

Details

I've noticed that a lot of internal mail sent around w/ inline images doesn't
display when I use the built-in Mac OS X mail program (Mail.app).

After looking at a lot of examples, I think I found the common thread, the
messages are all composed in Mozilla/Netscape, and they all have Content-base
and Content-locations with long URLs, broken over several lines.

I'm going to try to create and post a nice clean example, but if someone could
tell me if that is legal, that would be helpful. I know that header lines (like
Received:) can be broken, but I know every little about the technical aspets of
MIME.
It's legal to break up long headers into multiple lines, so long as the
subsequent lines all start with at least one piece of whitespace.  This may
still invalidate these header values, though.  I'm not sure if the act of
"unsplitting" these lines removes whitespace entirely or if it keeps some. 
Whitespace in URI's is bad.

It might help to see the actual headers.
Content-Base: "http://<FQDN>/users/xx
	mk/publish/vendorfairedec101.html"
Content-Location: "http://<FQDN>/users/xx
	mk/publish/vendorfairedec101.html"

Whitespace in URL's is actually supposed to be accepted, and automatically
stripped, although this has not always worked well in Mozilla/browser.

Seth asked me to send the actual message to him, so I've done so. 
I started hacking on some sample files today, and was wondering if someone could
provide a definition for what is legal and illegal whitespace. I noticed that
gluing ("J") the lins in VI still meant I had to strip some characters to make
the URL one continuous string.
->default
Assignee: ducarroz → sspitzer
QA Contact: yulian → stephend
I just noticed this today.  It seems to happen when the URL exceeds 38 
characters.  Also, it doesn't render correctly when the attachment is opened in 
the Mozilla browser.  I was surprised when -- prompted by the original report in 
this bug -- I turned on Display Attachments Inline and saw the styling and 
images in the rendered webpage.

Regarding what Mozilla does when unsplitting the header: at least sometimes, it 
apparently only removes the newline, no spaces.  See bug 240924.

Similar rendering bugs from bogusly-wrapped headers: bug 229290, bug 234547.
OS: MacOS X → All
Hardware: Macintosh → All
*** Bug 213527 has been marked as a duplicate of this bug. ***
Product: MailNews → Core
sorry for the spam.  making bugzilla reflect reality as I'm not working on these bugs.  filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Filter on "Nobody_NScomTLD_20080620"
QA Contact: stephend → mime
Product: Core → MailNews Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.