Created attachment 144505 [details] 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@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
Might be related to 441829 and 429393, but they overlap other HTML elements on top of the header. This bug is specifically about CSS body styles that bleed into the header.