[kmail2] [Bug 446919] New: html body style bleeds into mail header
Christian Spanier
bugzilla_noreply at kde.org
Mon Dec 13 09:33:37 GMT 2021
https://bugs.kde.org/show_bug.cgi?id=446919
Bug ID: 446919
Summary: html body style bleeds into mail header
Product: kmail2
Version: 5.19.0
Platform: Archlinux Packages
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: general
Assignee: kdepim-bugs at kde.org
Reporter: kde at boxie.eu
Target Milestone: ---
Created attachment 144505
--> https://bugs.kde.org/attachment.cgi?id=144505&action=edit
render bug of email header information
SUMMARY
I noticed that some specific (spam) mails mess up the mail header (containing
from, to, and date information, see screenshot). So I created a reproducible
test case that illustrates the issue. It is the
<body style="line-height: 0;margin: 0;padding: 0;background-color: #FFFFFF;">
that breaks rendering.
STEPS TO REPRODUCE
1. Send custom HTML mail using msmtp (or similar):
```bash
cat << EOF | mail -M "text/html" -s "Test" YOUR at MAIL.ADDRESS
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test</title>
</head>
<body style="line-height: 0;margin: 0;padding: 0;background-color: #FFFFFF;">
</body>
</html>
EOF
```
2. check your mails
OBSERVED RESULT
see screenshot
EXPECTED RESULT
readable lines.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list