Bug 57684 - HTML body changes header font
Summary: HTML body changes header font
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.5.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-25 11:00 UTC by Anno V. Heimburg
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example message (2.29 KB, text/plain)
2003-08-09 10:53 UTC, Anno V. Heimburg
Details
Example message attached (7.00 KB, text/plain)
2003-10-01 18:50 UTC, Anno V. Heimburg
Details
screen capture of message showing the problem (203.24 KB, image/png)
2006-04-03 12:35 UTC, Oded Arbel
Details
spam email message (8.34 KB, text/plain)
2006-04-03 12:37 UTC, Oded Arbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anno V. Heimburg 2003-04-25 11:00:48 UTC
Version:           1.5.1 (using KDE KDE 3.1.1)
Installed from:    SuSE RPMsSuSE
OS:          Linux

When viewing a HTML message that changes the font of the body, the header (and attachements, if any) are also displayed in that font.
Comment 1 Ingo Klöcker 2003-04-26 17:23:12 UTC
Subject: Re:  New: HTML body changes header font

Please attach an example message that demonstrates this problem to this 
bug report.

Comment 2 Anno V. Heimburg 2003-08-09 10:53:36 UTC
Created attachment 2193 [details]
Example message

Example message in attachment. I don't know what exactly causes the bug, I
simply took a message I received and replaced all text by "test". Formatting of
body unchanged. You should be able to use web.de's freemail service to produce
test messages at will, as this one was sent from there.
Comment 3 Anno V. Heimburg 2003-10-01 18:50:00 UTC
Created attachment 2661 [details]
Example message attached

Better example. Works in KMail 1.5.4, too. Seems that some software called
IncrediMail produces sufficiently weird HTML output to confuse KMail.
"Verspielter" (no idea about english name, it's the fancy-looking one) header
in kmail will adopt font and fontsize set in message.

Anno
Comment 4 Marc Mutz 2003-10-03 01:24:06 UTC
Subject: kdepim/kmail

CVS commit by mutz: 

Crude attempt to make KMail more robust against "CSS injection" by HTML mail (#57684) by adding "! important" to the declarations. The other part of the fix is to scan any <script></script> areas and remove all ! important found there. However, that potentially changes the appearance of the HTML mail, which is not desireable.

The ideal solution would be to scan the CSS rules in any <script> block in the to-be-embedded HTML and "escape" each selector there with "div.embeddedHTML >" and wrapping the included HTML into <div class="embeddedHTML">, but I don't see how that can be done with khtml instead of parsing css ourselves...
CCMAIL: 57684@bugs.kde.org


  M +92 -92    csshelper.cpp   1.6



Comment 5 Anno V. Heimburg 2004-01-30 19:51:08 UTC
I'll close this bug, since the error doesn't appear any more.
Comment 6 Oded Arbel 2006-04-03 12:35:53 UTC
Created attachment 15439 [details]
screen capture of message showing the problem

I still see this problem with some emails (KMail 1.9.1, KDE 3.5.1). Attached is
an screen capture of a spam email that I Received, showing the problem.
Comment 7 Oded Arbel 2006-04-03 12:37:17 UTC
Created attachment 15440 [details]
spam email message

Attached is the email that creates the display as in the snapshot above.

Note the larger (and different) header text.