Bug 131757

Summary: past as attachements of multiple files doesn't work
Product: [Applications] kmail Reporter: p <peter.mueller_1955>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description p 2006-08-03 04:52:18 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    SuSE RPMs

1. choose multiple (not only one) files in konquerer and copy them to the clipboard (ctrl-c)
2. start writing an email and choose from the menu "past as attachement"
3. error message list the file names and says they don't exist - but they do, attaching one after the other works fine

problem existed in kde 3.5.3 already
Comment 1 Stefan Gehn 2006-08-03 09:33:28 UTC
As a workaround use drag-n-drop from konqueror into the KMail window.

Developer note:
The problem is in KMComposeWin::slotPasteAsAttachment() which calls KURL constructor with the clipboard contents. Checking for \n and splitting the text accordingly could help but I'm not sure if that's the best thing to do. Also I'm puzzled how url.isValid() can return true for an url that contains a newline and another protocol definition in the middle of the string.
Comment 2 Philip Rodrigues 2006-08-03 20:21:05 UTC

*** This bug has been marked as a duplicate of 121130 ***