[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 75983] imap moving message loses attachments
From:       Carsten Burghardt <cb () magic-shop ! de>
Date:       2004-02-24 23:29:34
Message-ID: 20040224232934.29310.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=75983      
cb magic-shop de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From cb magic-shop de  2004-02-25 00:29 -------
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;
 };
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic