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

List:       kde-bugs-dist
Subject:    [Bug 73824] multipart mails with imap are broken
From:       Carsten Burghardt <cb () magic-shop ! de>
Date:       2004-02-15 15:10:53
Message-ID: 20040215151053.6714.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=73824      
cb magic-shop de changed:

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



------- Additional Comments From cb magic-shop de  2004-02-15 16:10 -------
CVS commit by burghard: 

Fix LOD by creating the partNode from the already existing object and not from string

CCMAIL: 73824-done bugs kde org


  M +1 -0      kmmessage.h   1.160
  M +1 -2      partNode.cpp   1.44


--- kdepim/kmail/partNode.cpp  #1.43:1.44
 @ -119,6 +119,5  @ partNode * partNode::fromMessage( const 
   // subscrib-shared, so we just force mimelib to parse the whole mail
   // as just another DwBodyPart...
-  DwBodyPart * mainBody = new DwBodyPart( msg->asDwString(), 0 );
-  mainBody->Parse();
+  DwBodyPart * mainBody = new DwBodyPart( *msg->getTopLevelPart() );
 
   partNode * root = new partNode( mainBody, mainType, mainSubType, true );

--- kdepim/kmail/kmmessage.h  #1.159:1.160
 @ -588,4 +588,5  @ public:
       If there is no body part, return value will be zero. */
   DwBodyPart * getFirstDwBodyPart() const;
+  DwMessage * getTopLevelPart() const { return mMsg; }
 
   /** Fill the KMMessagePart structure for a given DwBodyPart.
[prev in list] [next in list] [prev in thread] [next in thread] 

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