Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_sync_data_email.php
Show First 20 Lines • Show All 313 Lines • ▼ Show 20 Lines | // $result['ConversationIndex'] = 'CA2CFA8A23'; | ||||
// add Body element to the result | // add Body element to the result | ||||
$result['body'] = $this->setBody($messageBody, $body_params); | $result['body'] = $this->setBody($messageBody, $body_params); | ||||
// original body type | // original body type | ||||
// @TODO: get this value from getMessageBody() | // @TODO: get this value from getMessageBody() | ||||
$result['nativeBodyType'] = $message->has_html_part() ? 2 : 1; | $result['nativeBodyType'] = $message->has_html_part() ? 2 : 1; | ||||
// Message class | // Message class | ||||
// @TODO: add messageClass suffix for encrypted messages | if($headers->ctype == 'multipart/signed' && $struct->parts[1] && $struct->parts[1]->mimetype == 'application/pkcs7-signature' ){ | ||||
$result['messageClass'] = 'IPM.Note.SMIME.MultipartSigned'; | |||||
} | |||||
elseif($headers->ctype == 'application/pkcs7-mime' || $headers->ctype == 'application/x-pkcs7-mime'){ | |||||
$result['messageClass'] = 'IPM.Note.SMIME'; | |||||
} | |||||
else{ | |||||
$result['messageClass'] = 'IPM.Note'; | $result['messageClass'] = 'IPM.Note'; | ||||
} | |||||
machniak: To exclude PGP messages this check need to be a little bit more specific. See https://github. | |||||
$result['contentClass'] = 'urn:content-classes:message'; | $result['contentClass'] = 'urn:content-classes:message'; | ||||
// Categories (Tags) | // Categories (Tags) | ||||
if ($this->tag_categories) { | if ($this->tag_categories) { | ||||
// convert kolab tags into categories | // convert kolab tags into categories | ||||
$result['categories'] = $this->getKolabTags($message); | $result['categories'] = $this->getKolabTags($message); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,272 Lines • Show Last 20 Lines |
To exclude PGP messages this check need to be a little bit more specific. See https://github.com/roundcube/roundcubemail/blob/master/plugins/enigma/lib/enigma_engine.php#L499