Bug 476329

Summary: Incoming HTML e-mail believed to be Plain text, unless HTML by default option is on
Product: [Applications] kmail2 Reporter: Gert Oja <gert7>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: montel
Priority: NOR    
Version: 5.24.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Example e-mail that should have an HTML notice
The same e-mail with HTML by default enabled
Example e-mail that has an HTML notice

Description Gert Oja 2023-10-30 16:42:16 UTC
SUMMARY
An e-mail from chess.com through GMail appears as Plain Text and provides no option of being rendered as HTML in the top area of the message. However, if Configure KMail - Security - Reading - Prefer HTML to Plain Text is enabled, the message is rendered in HTML. This doesn't happen with an e-mail from instagram.com where the orange "This is an HTML message" option does appear.


STEPS TO REPRODUCE
1. Add GMail account
2. Receive message from e.g. chess.com
3. Open e-mail

OBSERVED RESULT
Marked as "Plain Message", no HTML option present.

EXPECTED RESULT
An orange bar saying "This is an HTML message" with the option to view as HTML should appear.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Wayland 1.22.0-1
Comment 1 Laurent Montel 2023-11-02 16:08:19 UTC
Hi,
is it possible to provide me this email  ? 
Otherwise I can't debug it.
Regards
Comment 2 Gert Oja 2023-11-02 17:45:41 UTC
Created attachment 162828 [details]
Example e-mail that should have an HTML notice
Comment 3 Gert Oja 2023-11-02 17:46:11 UTC
Created attachment 162829 [details]
The same e-mail with HTML by default enabled
Comment 4 Laurent Montel 2023-11-03 06:10:50 UTC
Hi,
test email that you send me work fine. We have area for showing as html no ?
I need an email which doesn't work :) as your "An e-mail from chess.com through GMail appears as Plain Text"

thanks
Comment 5 Gert Oja 2023-11-03 17:55:10 UTC
Created attachment 162847 [details]
Example e-mail that has an HTML notice
Comment 6 Gert Oja 2023-11-03 18:01:09 UTC
I've added 2 screenshots with the "Prefer HTML to plain text" option disabled. Both should show the orange HTML notice shown, but one does not. I don't really know what else to say, since a majority of the e-mails I have in the inbox that should have this orange banner don't have it (only 1 out of 10 e-mails in a recent selection of HTML e-mails has it). It doesn't seem to be dependent on what the receiving e-mail provider is.