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.
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