<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>75983</bug_id>
          
          <creation_ts>2004-02-24 03:41:56 +0000</creation_ts>
          <short_desc>imap moving message loses attachments</short_desc>
          <delta_ts>2007-09-14 12:17:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kmail</product>
          <component>general</component>
          <version>1.6</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Greg Sullivan">gregs</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>40</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>209137</commentid>
    <comment_count>0</comment_count>
    <who name="Greg Sullivan">gregs</who>
    <bug_when>2004-02-24 03:41:56 +0000</bug_when>
    <thetext>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 &quot;Save As ...&quot; the attached file.
Then I move the message to a folder on my local disk (Message &gt; Move To &gt; 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&apos;s no problem.
I have attachments loaded on demand for that IMAP server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209528</commentid>
    <comment_count>1</comment_count>
    <who name="Carsten Burghardt">cb</who>
    <bug_when>2004-02-25 00:29:33 +0000</bug_when>
    <thetext>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-&gt;isComplete();
   msg-&gt;setComplete( true );
   setDeletesItself( true );
@@ -1710,4 +1711,7 @@ KMSaveAttachmentsCommand::KMSaveAttachme
 void KMSaveAttachmentsCommand::execute()
 {
+  QPtrList&lt;KMMessage&gt; lst = retrievedMsgs();
+  if ( lst.count() == 1 ) // restore original complete state
+    lst.first()-&gt;setComplete(mMessageComplete);
   if ( mAttachments.count() &gt; 0 )
   {
@@ -1716,5 +1720,4 @@ void KMSaveAttachmentsCommand::execute()
   }
   KMMessage *msg = 0;
-  QPtrList&lt;KMMessage&gt; lst = retrievedMsgs();
   QPtrListIterator&lt;KMMessage&gt; itr( lst );
 

--- kdepim/kmail/kmcommands.h  #1.26:1.26.4.1
@@ -301,4 +301,5 @@ private:
   QPtrList&lt;partNode&gt; mAttachments;
   bool mEncoded;
+  bool mMessageComplete;
 };
 


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>384103</commentid>
    <comment_count>2</comment_count>
    <who name="Andras Georgy Bekes">bekesa</who>
    <bug_when>2005-10-24 14:12:38 +0000</bug_when>
    <thetext>In which version is it fixed? I have KMail Version 1.8.1 and I can reproduce the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>384216</commentid>
    <comment_count>3</comment_count>
    <who name="Andreas Gungl">a.gungl</who>
    <bug_when>2005-10-24 21:08:24 +0000</bug_when>
    <thetext>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).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>