Bug 316518 - HTML-mail from TYPO3 Direct Mail module mangled.
Summary: HTML-mail from TYPO3 Direct Mail module mangled.
Status: CONFIRMED
Alias: None
Product: kdepim
Classification: Applications
Component: messageviewer (show other bugs)
Version: 5.3.*
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 10:06 UTC by Morten Sjoegren
Modified: 2017-01-16 17:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot from KMail 4.9.5 of this error (506.91 KB, image/png)
2013-03-11 10:07 UTC, Morten Sjoegren
Details
Mail as exported from KMail 4.9.5 (248.81 KB, application/mbox)
2013-03-11 10:09 UTC, Morten Sjoegren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Morten Sjoegren 2013-03-11 10:06:12 UTC
I receive a newsletter from 5te.dk that contains HTML, CSS and JavaScript.

The JavaScript and CSS is shown as clear text and none of the text content is shown, in KMail 4.9.5.
I'd expect the JS to be ignored but the content still to be shown, so I can read these mails.

If I press "reply" or "edit this mail", I can see the content just fine.

Reproducible: Always

Steps to Reproduce:
1. Recieve mail from @5te.dk
2. Open mail
Actual Results:  
Mangled email with JS and CSS shown as clear text, content not shown.

Expected Results:  
JS ignored and actual content shown.

Pressing "reply" or "edit this email", let me see the content of the mail.

From the mail header it looks like the email was generated with "TYPO3 Direct Mail module".
I'll attach the mail and a screenshot.
Comment 1 Morten Sjoegren 2013-03-11 10:07:27 UTC
Created attachment 77942 [details]
Screenshot from KMail 4.9.5 of this error
Comment 2 Morten Sjoegren 2013-03-11 10:09:04 UTC
Created attachment 77943 [details]
Mail as exported from KMail 4.9.5
Comment 3 Laurent Montel 2013-03-11 11:49:39 UTC
it's an html email.
so click on "show html" htmlstatusbar.

So it's not a bug.
Comment 4 Morten Sjoegren 2013-03-11 15:47:33 UTC
Show HTML is already enabled by default.
If "Show html" is disabled, I can see the HTML-code and the box with the red-border telling me that if I trust the sender I can click to see the mail.

Other HTML emails shows just fine. 

I think it's related to them attaching jquery and including it with cid: in the HTML, instead of just embedding it.
Comment 5 Laurent Montel 2013-03-11 17:56:18 UTC
Ok I can see the problem now.
I reopen it
Comment 6 Morten Sjoegren 2013-03-21 10:09:46 UTC
Thank you for reopening the bug :)

I've some additional information.:
I've upgraded to KDE 4.10.1 and the problem is slightly different. The HTML-content of the mail is now displayed as expected with the styling, but the JavaScript & CSS source-code is shown as text at the bottom of the mail. 

This is a huge improvement over how it was in KDE 4.9.5, where I couldn't read the content of the mail.
Comment 7 Denis Kurz 2016-09-24 18:18:04 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 8 Morten Sjoegren 2016-09-28 18:46:21 UTC
I just tried to open the attachment "Mail as exported from KMail 4.9.5" and the problem is still there.

I'm on KMail 5.3.0 KDE 5.26.0 on Fedora 24.

But honestly I had forgotten about this bugreport and I don't really use KMail anymore (sorry, using webmail most of the time). Since no-one else have reported something like this, I doubt it's important and you can just close the bug again.
Comment 9 Denis Kurz 2017-01-07 23:56:03 UTC
Confirmed due to Comment 8