a->setUid(QString());//KCalCore sets the pointer as uid, we don't want that (if we wanted one, we'd want a real, globally unique one), so we clear the uid
}
//TODO Do we really not need the attachment uri for something else?
attachment->setUri(QString::fromLatin1("cid:")+QString::fromLatin1(KMime::uniqueString()+'@'+"kolab.resource.akonadi"));//Serialize the attachment as attachment with uri, referencing the created mime-part