qtmobility/src/messaging/qmessagecontentcontainerid_qmf.cpp
changeset 5 453da2cfceef
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/src/messaging/qmessagecontentcontainerid_qmf.cpp	Mon May 03 13:18:40 2010 +0300
+++ b/qtmobility/src/messaging/qmessagecontentcontainerid_qmf.cpp	Fri May 14 16:41:33 2010 +0300
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 #include "qmessagecontentcontainerid.h"
-
+#include "qmfhelpers_p.h"
 #include <qmailmessage.h>
 
 QTM_BEGIN_NAMESPACE
@@ -115,7 +115,7 @@
 QMessageContentContainerId::QMessageContentContainerId(const QString& id)
     : d_ptr(new QMessageContentContainerIdPrivate)
 {
-    QString input(id);
+    QString input(QmfHelpers::stripIdentifierPrefix(id));
 
     if (input.startsWith("body:")) {
         d_ptr->_body = true;
@@ -161,7 +161,7 @@
         location.prepend("body:");
     }
 
-    return location;
+    return QmfHelpers::prefixIdentifier(location);
 }
 
 bool QMessageContentContainerId::isValid() const