Bug 68673 - drag & drop of attachment from message view generates 0 sized files
Summary: drag & drop of attachment from message view generates 0 sized files
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.5.93
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-20 17:14 UTC by Oded Arbel
Modified: 2008-10-03 11:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2003-11-20 17:14:11 UTC
Version:           1.5.93 (using KDE 3.1.93 (CVS >= 20031111), compiled sources)
Compiler:          gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
OS:          Linux (i686) release 2.4.21-3mdk

Dragging a message from the preview or message view dialog of kmail (to the desktop and choosing "copy") sometimes creates empty (0 sized files) instead of the attachment file.

Related issues:
- dragging the icon shown besides the attachment name (which is a much larger and convinient target) results in copying of the icon image instead of the attachment.
- its not possible to drag from the MIME tree.
Comment 1 Ingo Klöcker 2003-11-20 18:48:06 UTC
Are you using IMAP? This could explain the empty files. If not, then please provide a message for which this is reproducible.

The first related issue has already been reported before. It's actually a stupid new feature of KHTML (apparently dragging images from web pages copies the images and not the target of the link).
Comment 2 Oded Arbel 2003-11-21 16:34:12 UTC
Subject: Re:  drag & drop of attachment from message view generates 0 sized files

> Are you using IMAP? This could explain the empty files. If not, then please

I am. why would the files be empty ?

Comment 3 Carsten Burghardt 2003-11-21 16:58:04 UTC
Subject: Re:  drag & drop of attachment from message view generates 0 sized files

On Friday 21 November 2003 16:34, Oded Arbel wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=68673
>
>
>
>
> ------- Additional Comments From oded@geek.co.il  2003-11-21 16:34 -------
> Subject: Re:  drag & drop of attachment from message view generates 0 sized
> files
>
> > Are you using IMAP? This could explain the empty files. If not, then
> > please
>
> I am. why would the files be empty ?

Because you probably have load-on-demand activated in the account settings. 
With this configuration the attachments are only loaded if you click on them. 
Well, and dnd is simply not supported yet.


Carsten

Comment 4 oded 2003-11-22 17:13:50 UTC
Subject: Re:  drag & drop of attachment from message view 
     generates 0 sized files

>> > Are you using IMAP? This could explain the empty files. If not, then
>> > please
>>
>> I am. why would the files be empty ?
>
> Because you probably have load-on-demand activated in the account
> settings.
> With this configuration the attachments are only loaded if you click on
> them.
> Well, and dnd is simply not supported yet.

I do have load-on-demand.
Then this bug is "drag & drop should download attachment when
load-on-demand is enabled".
Is it planned to be fixed for 3.2 ?

Comment 5 Oded Arbel 2004-01-26 10:28:35 UTC
To Carsten Burghardt:
Can you please change the status of this bug to "confirmed" or "wont fix" depending on what's the verdict regarding my previous comment (http://bugs.kde.org/show_bug.cgi?id=68673#c4) ? 
Comment 6 Carsten Burghardt 2004-01-26 11:39:18 UTC
I'll try to fix that for 3.2.1 if I find a good way.
Comment 7 ieure 2004-02-20 21:23:24 UTC
I can confirm this is still an issue in 3.2, and it's a regression from 3.1.5.
Comment 8 bzzz 2004-02-28 20:19:29 UTC
I confirm that dragging the icon shown besides the attachment name results in copying of the icon image instead of the attachment, kde 3.2 cvs
Comment 9 Martin Bammer 2004-03-17 09:22:59 UTC
Ver confusing for users is when dragging the text (name of the attached file) nothing happens and when dragging the icon the icon itself will be attached to a new message. It should behave the same way when dragging the name or the icon of the attached file.
Comment 10 Jedd 2004-03-22 01:27:16 UTC
Indeed.  Problem here with 3.2.1 (from Debian unstable packages).  I thought this did work in 3.1.5 fine though (?).

I'm not using IMAP - just local ~/Mail folders.

DND the icon and you get a v.small png.  DND the text 'shortcut' and nothing happens.
Comment 11 Carsten Burghardt 2004-05-05 18:50:17 UTC
CVS commit by burghard: 

Disable DND for IMAP with load-on-demand until I have a better solution.
CCMAIL: 68673-done@bugs.kde.org


  M +5 -0      kmreaderwin.cpp   1.755


--- kdepim/kmail/kmreaderwin.cpp  #1.754:1.755
@@ -851,4 +851,9 @@ void KMReaderWin::setMsg(KMMessage* aMsg
     aMsg->setDecodeHTML( htmlMail() );
     mLastStatus = aMsg->status();
+    // FIXME: workaround to disable DND for IMAP load-on-demand
+    if ( !aMsg->isComplete() )
+      mViewer->setDNDEnabled( false );
+    else
+      mViewer->setDNDEnabled( true );
   } else {
     mLastStatus = KMMsgStatusUnknown;


Comment 12 dp 2008-10-03 11:23:50 UTC
I can confirm this bug in Kontact 1.2.9 running in Kubuntu 8.04.
I also tried to Drag&Drop attachments to a konqueror folder but there were created only 0kb files. The account was an IMAP.  That is really confusing.

Drag and drop of an attachment out of the header box is not possible neither from IMAP nor from a POP3 account.