Created attachment 66914 [details] Exact code copied out of the email Version: 4.7 (using KDE 4.7.3) OS: Linux I have multiple daily logwatch logs sent to my email address in html format. The html messages use css for table coloring, but the css is not recognized or used when viewing the messages in kmail. I have viewed the source of the email message and saved all the html into a separate file called logwatch.html and viewed it in Konqueror and it renders properly. Reproducible: Always Steps to Reproduce: All logwatch messages in html format will produce the incorrect output via kmail. Expected Results: The table heading backgrounds should be colored as per the inline css. The attachment here is the exact html code copied from the email. I have only stripped out the details pertaining to my servers, but the offending contents are there.
Could you please either send the mail to me as an mbox attachment and/or attach it here as an mbox file? In either case feel free to strip it of any personal information.
Created attachment 66949 [details] mbox file containing offending code I reran logwatch and this is the email in html form that created. I saved as an .mbox file. I only modified a couple spots in the code itself so it would not disrupt any of the html coding.
Thanks, I'll look deeper into this issue but my initial thought is that your formatting is lost due to the formatting that KMail adds for the header/crypt/... formatting. Ie, the viewer is quite capable of using css for markup but we might need to adjust the internal css as to nit collide with common formatting.
CSS is not present in the HTML used for viewing.
same is i.e. with newsletters from http://www.linux-magazin.de in HTML format. Interestingly if you forward same message the editor is now rendering the style and colors. Check also i.e. by viewing same mail using Thunderbird the rendering is completly different.
I fixed it in 4.9.1 But add css in mail breaks header css... I need to understand how work html+css to specify css for header and not break it with imported css...
Git commit 0c2c1b86541fa1e373a823b442e8753c8703e035 by Montel Laurent. Committed on 16/08/2012 at 08:47. Pushed by mlaurent into branch 'KDE/4.9'. Fix Bug 289382 - HTML mails with CSS loses CSS on rendering css loading was done yesterday but it broke header style. Now it's fixed so I can close this bug. FIXED-IN: 4.9.1 M +15 -2 messageviewer/csshelperbase.cpp http://commits.kde.org/kdepim/0c2c1b86541fa1e373a823b442e8753c8703e035
@Thomas: I don't have your ML I think it's fixed so send me an email about this ML or test with 4.9.1 Regards