Bug 505101

Summary: Saving an partial message of an multipart message results in zero size file
Product: [Applications] kmail2 Reporter: mail+kde
Component: commands and actionsAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.4.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mail+kde 2025-06-01 19:15:33 UTC
SUMMARY
Given a multipart message that contains multiple messages (use case e.g. Forward multiple E-Mail as is within a single email), those messages are shown as embedded message.
In the message structure view, you can select a single part / substructure and choose to save it via the context menu. Instead of a file containing the selected part (including all its sub-parts), i only get an empty file.

STEPS TO REPRODUCE
1. Open a multipart message with one or more (other) mails as attachment
2. Open the structure view (Ctrl+Alt+D)
3. Select one of the attached messages / subparts of the outer message that is a message by itself
4. Right-Click on it
5. Choose Save and save the file

OBSERVED RESULT
A file with the chosen name will be created.
It has zero bytes size (no content)

EXPECTED RESULT
The file should have the actual content of the selected mime part

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSuSE Tumbleweed 20250531
Kernel  6.14.6-1-vanilla (64-bit)
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0