Version: Git (master) (using Devel) OS: Linux Sometimes the user may wish to attach an existing email as an attachment in the composer (but not by using Forward -> As attachment, e.g. if it is wanted in reply to an existing message). One logical way to do this would be to select the message to be attached, "Edit - Copy Email", go to the composer, then "Edit - Paste as Attachment". If this is done, what happens is that the GUI becomes unresponsive and the kmail process takes 100% CPU. What it is doing is trying to create a zip attachment of the entire user's documents directory, the only way out of this is either to wait or to kill the kmail process. Reproducible: Always Steps to Reproduce: Select an existing message in the message list, do "Edit - Copy Email". Open a composer window, do "Edit - Paste as Attachment". Actual Results: The GUI becomes unresponsive, the disc starts churning, KMail takes 100% CPU. Expected Results: The message is pasted as an attachment. Messages displayed on stderr (this is the start of a very long transcript which lists the entire contents of the documents directory): kmail2(6514) Message::AttachmentControllerBase::addAttachment: Creating attachment from folder kmail2(6514)/libkdepim MessageCore::AttachmentFromFolderJob::Private::compressFolder: starting compression kmail2(6514)/libkdepim MessageCore::AttachmentFromFolderJob::Private::compressFolder: writing root directory : "" kmail2(6514)/libkdepim MessageCore::AttachmentFromFolderJob::Private::addEntity: -1 Attachment size : 33 kmail2(6514)/libkdepim MessageCore::AttachmentFromFolderJob::Private::addEntity: adding directory "KookaGallery" to zip kmail2(6514)/libkdepim MessageCore::AttachmentFromFolderJob::Private::addEntity: -1 Attachment size : 79 kmail2(6514)/libkdepim MessageCore::AttachmentFromFolderJob::Private::addEntity: adding directory "119110" to zip
"One logical way to do this would be to select the message to be attached, "Edit - Copy Email" Where is the "Edit -> copy email" ? Right button in message view ? in editor ?
From the main KMail window, menu bar, "Edit", "Copy Email"
Confirmed that one way of achieving this function is to drag a message from the message list and drop it on the composer, this works as expected.
I confirm bug. And confirm that dnd works. Will look at.
Git commit 38d7a7d512876769a50f07e868a064f990fe17d0 by Montel Laurent. Committed on 30/11/2011 at 12:49. Pushed by mlaurent into branch 'master'. Fix Bug 287779 - Copy Email then Paste As Attachment does not work as expected BUG: 287779 FIXED-IN: 4.7.4 M +1 -37 kmail/kmcomposereditor.cpp M +0 -3 kmail/kmcomposereditor.h M +50 -1 kmail/kmcomposewin.cpp M +1 -0 kmail/kmcomposewin.h http://commits.kde.org/kdepim/38d7a7d512876769a50f07e868a064f990fe17d0
Git commit a1db0c805784d248c7734d88482e72239b017780 by Montel Laurent. Committed on 30/11/2011 at 12:49. Pushed by mlaurent into branch 'KDE/4.7'. Fix Bug 287779 - Copy Email then Paste As Attachment does not work as expected BUG: 287779 FIXED-IN: 4.7.4 (cherry picked from commit 38d7a7d512876769a50f07e868a064f990fe17d0) Conflicts: kmail/kmcomposereditor.cpp kmail/kmcomposereditor.h kmail/kmcomposewin.h M +1 -37 kmail/kmcomposereditor.cpp M +2 -5 kmail/kmcomposereditor.h M +50 -1 kmail/kmcomposewin.cpp M +1 -0 kmail/kmcomposewin.h http://commits.kde.org/kdepim/a1db0c805784d248c7734d88482e72239b017780