Bug 485279

Summary: Drag-and-drop from the mail reader doesn't work for mails that consist of only the attachment
Product: [Applications] kmail2 Reporter: Katalin Rebhan <me>
Component: UIAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.24.5   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Katalin Rebhan 2024-04-09 14:42:58 UTC
SUMMARY
Dragging a file out of the mail reader only creates a broken desktop entry for mails that have headers Content-Disposition: attachment. Mails containing DMARC reports from Google are formatted this way, for example.

STEPS TO REPRODUCE
1. Open mail which consists only of the attachment
2. Drag attachment onto desktop

OBSERVED RESULT
It creates a file named "attachment:?place=body". When you try to open it, an error dialog saying "Could not read file attachment:?place=body." pops up.

EXPECTED RESULT
Drag-and-drop works like for attachments in a multipart email.

SOFTWARE/OS VERSIONS
Operating System: NixOS 24.05
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.6.22 (64-bit)
Graphics Platform: Wayland
Processors: 24 × 13th Gen Intel® Core™ i7-13700F
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT

ADDITIONAL INFORMATION