Closed Bug 76804 Opened 25 years ago Closed 17 years ago

Plain text messages with HTML attachment containing STYLE displays incorrectly in mailnews

Categories

(MailNews Core :: MIME, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 31052

People

(Reporter: bc, Unassigned)

References

Details

Attachments

(2 files)

Steps to reproduce: 1. Compose an HTML email containing some text. 2. Attach an HTML page containing a STYLE tag and rules. 3. Send mail to yourself. 4. View mail. Actual results. The styled content of the attached HTML page will display on top of the email's text. Expected results. The content of the attached email should display below the email content. Trunk Build 2001041212/Win2k
QA Contact: esther → trix
Maybe it's not to do with the style tag. I recently received an e-mail whose 1st part was text/plain, and the 2nd was text/html. The text wasn't displayed but the html part was (it contained an advertisment footer). The same mail was displayed correctly under Netscape 4.76. I can send the message as an attachment if you think it helps somehow.
This bug is actually pretty nasty. An HTML attachment seems to be able to completely override the way a plain text message is displayed. That includes style, background, etc. With proper "luck" leads to plain text message being displayed black on black, or being all centered (instead on left-justified), or being messed up in some other way. P.S. I am currently running 1.6a/2003102323 on Fedora Core 1.
OS: Windows 2000 → All
Hardware: PC → All
Summary: Sending an email with HTML attachment containing STYLE displays incorrectly in mailnews → Plain text messages with HTML attachment containing STYLE displays incorrectly in mailnews
*** Bug 223500 has been marked as a duplicate of this bug. ***
*** Bug 240556 has been marked as a duplicate of this bug. ***
*** Bug 261408 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
Confirming in Thunderbird 1.0 on FreeBSD and Windows XP. 1. Create a HTML document that contains a <link> to a stylesheet on the web somewhere. The stylesheet should contain body { color: #003366; } (or whatever colour you happen to like). 2. Attach the HTML document to a plain text email and send it to someone, or yourself. 3. View the email in Thunderbird. The HTML attachment is displayed inline below the plain text message, as expected. However, the plain text message is coloured by the style (fonts are changed too if the stylesheet specifies them). Expected behaviour: the styling information should only be applied to the HTML attachment. The plain text message should be displayed as plain text.
I see this in Thunderbird too. I am guessing this should be in Product: Core.
Component: MailNews: Main Mail Window → MailNews: MIME
Product: Mozilla Application Suite → Core
*** Bug 284734 has been marked as a duplicate of this bug. ***
I see the same error with HTML attachment without STYLE tag, but with a BODY tag with BGCOLOR or TEXT parameters - the colors from them are used to display plain text part of the message.
On picture they are three steps: 1. original HTML e-mail, 2. forward window with invisible text (plain text) 3. texts becomes visible after selecting.
xref bug 341059. Would that be a proper solution to this problem?
I think this is a dupe of bug 31052. See in particular bug 31052 comment 31. See also bug 292336.
Assignee: sspitzer → nobody
QA Contact: stephend → mime
Product: Core → MailNews Core
this bug is still there in 2.0.0.21 is it really that complicated to fix? just handle a HTML like an image; so it has an outer box in the UI where all positions are relative to I guess the bug is, an embedded HTML gets the positional frame of the main body; it should be a nested one inside/below the main text
Quoting Stanimir Stamenkov from mozilla.support.thunderbird: "but it might get resolved in future Tb versions once Bug 80713 "Need a way to specify an auto-height for an IFRAME such that the frame is given the full height of the contained content" <https://bugzilla.mozilla.org/show_bug.cgi?id=80713> gets resolved."
The problem is that when "view attachments inline" is enabled, a plain-text message gets displayed with the attributes of the attachment. The attachment does not need a STYLE, it can be demonstrated when the HTML attachment specifies a body background color. Same as Bug 31052.
This even happens in SeaMonkey Browser when viewing a message/rfc822 object containing an HTML attachment, see bug 524639 just duped to here.
I believe this is a dupe of bug 31052, see for example bug 31052 comment #9
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: