Bug 395077

Summary: New attachment type: "Attach clipboard"
Product: [Applications] kmail2 Reporter: Dennis Schridde <dennis.schridde>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.7.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 5.9.0

Description Dennis Schridde 2018-06-06 08:56:21 UTC
Currently I can attach files, folders, my own vCard or other vCards.  It would be great if I could also attach the current content of the clipboard.  After selecting "Attach clipboard ..." from the menu, I would be asked for a filename.  After pressing "OK" on that dialogue, the clipboard contents would appear with the specified filename in the list of attachments.  If KMail can only attach existing files, a temporary file could be created.
Comment 1 Laurent Montel 2018-06-06 11:27:31 UTC
Git commit 4cdb29bb99af299d886ec7401cb8bd18da77b32a by Laurent Montel.
Committed on 06/06/2018 at 11:27.
Pushed by mlaurent into branch 'master'.

Fix Bug 395077 - New attachment type: "Attach clipboard"

FIXED-IN: 5.9.0

M  +2    -0    messagecomposer/src/CMakeLists.txt
M  +30   -0    messagecomposer/src/attachment/attachmentcontrollerbase.cpp
M  +1    -0    messagecomposer/src/attachment/attachmentcontrollerbase.h
A  +64   -0    messagecomposer/src/job/attachmentclipboardjob.cpp     [License: GPL (v2)]
A  +38   -0    messagecomposer/src/job/attachmentclipboardjob.h     [License: GPL (v2)]

https://commits.kde.org/messagelib/4cdb29bb99af299d886ec7401cb8bd18da77b32a