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.
Subject: Re: New: HTML body changes header font Please attach an example message that demonstrates this problem to this bug report.
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.
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
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
I'll close this bug, since the error doesn't appear any more.
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.
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.