Version: 1.6 (using KDE 3.2.0, (3.0)) Compiler: gcc version 2.95.4 20011002 (Debian prerelease) OS: Linux (i686) release 2.4.24 From an IMAP server, I get an email with an attachment. I "Save As ..." the attached file. Then I move the message to a folder on my local disk (Message > Move To > Local Folders ...). If I look at that message, the attachment(s) are gone. Note that if I move the message to the local folder and then save the attachment to disk, there's no problem. I have attachments loaded on demand for that IMAP server.
CVS commit by burghard: Restore the original complete-state. CCMAIL: 75983-done@bugs.kde.org M +4 -1 kmcommands.cpp 1.99.2.4 M +1 -0 kmcommands.h 1.26.4.1 --- kdepim/kmail/kmcommands.cpp #1.99.2.3:1.99.2.4 @@ -1704,4 +1704,5 @@ KMSaveAttachmentsCommand::KMSaveAttachme { // do not load the complete message but only parts + mMessageComplete = msg->isComplete(); msg->setComplete( true ); setDeletesItself( true ); @@ -1710,4 +1711,7 @@ KMSaveAttachmentsCommand::KMSaveAttachme void KMSaveAttachmentsCommand::execute() { + QPtrList<KMMessage> lst = retrievedMsgs(); + if ( lst.count() == 1 ) // restore original complete state + lst.first()->setComplete(mMessageComplete); if ( mAttachments.count() > 0 ) { @@ -1716,5 +1720,4 @@ void KMSaveAttachmentsCommand::execute() } KMMessage *msg = 0; - QPtrList<KMMessage> lst = retrievedMsgs(); QPtrListIterator<KMMessage> itr( lst ); --- kdepim/kmail/kmcommands.h #1.26:1.26.4.1 @@ -301,4 +301,5 @@ private: QPtrList<partNode> mAttachments; bool mEncoded; + bool mMessageComplete; };
In which version is it fixed? I have KMail Version 1.8.1 and I can reproduce the bug.
You should use at least KDE 3.4.2 (or even better KDE 3.4.3). That means KMail 1.8.2 (KMail 1.8.3).