attachment->setUri(QString::fromLatin1("cid:")+QString::fromLatin1(KMime::uniqueString()+'@'+"kolab.resource.akonadi"));//Serialize the attachment as attachment with uri, referencing the created mime-part
attachment->setUri(QString::fromLatin1("cid:")+QString::fromLatin1(KMime::uniqueString() + '@' + "kolab.resource.akonadi")); //Serialize the attachment as attachment with uri, referencing the created mime-part