Bug 207339

Summary: drag-and-drop attachment to file manager doesn't save it
Product: [Applications] kmail Reporter: Jonathan Marten <jjm>
Component: messageviewerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jonathan Marten 2009-09-14 12:40:04 UTC
Version:           KMail
Version 1.12.90
Using KDE 4.3.68 (KDE 4.3.68 (KDE 4.4 >= 20090907)) (using Devel)
OS:                Linux
Installed from:    Compiled sources

Dragging and dropping an attachment from the message preview or a message viewer window, to a Dolphin or Konqueror file manager window, doesn't save the attachment as would be expected.  The only drop option presented is "Link Here" (along with "Cancel"), selecting this options creates a file named something like "attachment:3?place=body.desktop" with the contents:

[Desktop Entry]
Icon=unknown
Name=attachment:3?place=body
Type=Link
URL[$e]=attachment:3?place=body

The message

konqueror(12842)/libkonq KonqOperations::doDrop: URL: KUrl("attachment:5?place=body")

is printed on stderr.

Dragging the attachment from the message structure viewer correctly saves the attachment, the "Copy Here" drop operation is shown as would be expected.  The corresponding stderr message is

konqueror(12842)/libkonq KonqOperations::doDrop: URL: KUrl("file:///tmp/kde-jjm4/kmailu13052.6/leo.JPG")
Comment 1 Thomas McGuire 2009-09-14 12:54:41 UTC
Have you tried with the latest trunk version?
I thought I had fixed this bug with commit 1021518.
Comment 2 Jonathan Marten 2009-09-14 17:12:39 UTC
Works as intended with current trunk.  My last update was just before that commit...