Bug 387646

Summary: Plain-text Mail with HTML attachment treated as HTML when forwarding
Product: [Applications] kmail2 Reporter: Jeffrey Kelling <overlordapophis>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: montel
Priority: NOR    
Version: 5.6.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.7.0
Attachments: Plain Text Email with HTML file attached.

Description Jeffrey Kelling 2017-12-06 13:47:40 UTC
I have a mail in my inbox with the following message structure:

[mail]
|- body part
 |- body part
 |- somefile.html
|- smime.p7s

The message is signed and was send with kmail, including somefile.html as an attachment.

When forwarding this message inline (forwarding as attachement works as expected), the result is:
- An HTML mail the body of which contains only the content of somefile.html
- The content of 'body part' gets discarded.
- somefile.html present as attachmment

Expected behavior:
- A plain text mail with 'body part' quoted as original message
- somefile.html as attachmment

I probable ran into a bot of a cornercase here and forwarding as an attachment works, so I set the severity to minor.
Comment 1 Jeffrey Kelling 2017-12-06 13:58:42 UTC
Created attachment 109228 [details]
Plain Text Email with HTML file attached.

To reproduce bug, open Test.mbox in kmail and attempt forwarding message inline.