37 #include "kmgroupware.h"
38 #include "kmmessage.h"
39 #include "kmmsgpart.h"
40 #include "libkcal/incidenceformatter.h"
42 #include <mimelib/enum.h>
46 bool vPartFoundAndDecoded(
KMMessage* msg, TQString& s )
50 if( ( DwMime::kTypeText == msg->type() && ( DwMime::kSubtypeVCal == msg->subtype() ||
51 DwMime::kSubtypeXVCard == msg->subtype() ) ) ||
52 ( DwMime::kTypeApplication == msg->type() &&
53 DwMime::kSubtypeOctetStream == msg->subtype() ) )
57 }
else if( DwMime::kTypeMultipart == msg->type() &&
58 ( (DwMime::kSubtypeMixed == msg->subtype() ) ||
59 (DwMime::kSubtypeAlternative == msg->subtype() ) ))
62 DwBodyPart* dwPart = msg->
findDwBodyPart( DwMime::kTypeApplication,
63 DwMime::kSubtypeMsTNEF );
66 DwMime::kSubtypeOctetStream );
69 KMMessagePart msgPart;
71 s = KCal::IncidenceFormatter::msTNEFToVPart( msgPart.bodyDecodedBinary() );
74 dwPart = msg->
findDwBodyPart( DwMime::kTypeText, DwMime::kSubtypeVCal );
76 KMMessagePart msgPart;
82 }
else if( DwMime::kTypeMultipart == msg->type() &&
83 DwMime::kSubtypeMixed == msg->subtype() ) {
TQCString bodyDecoded() const
Returns a decoded version of the body from the current content transfer encoding.
static void bodyPart(DwBodyPart *aDwBodyPart, KMMessagePart *aPart, bool withBody=true)
Fill the KMMessagePart structure for a given DwBodyPart.
DwBodyPart * findDwBodyPart(int type, int subtype) const
Return the first DwBodyPart matching a given Content-Type or zero, if no found.