Commit 63d76a86 authored by Manfred Kutas's avatar Manfred Kutas

ZP-1158 Outlook over AS sync doesn't work if native body type is 0.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 8f2565d4
......@@ -828,11 +828,19 @@ class MAPIProvider {
if (!isset($message->importance))
$message->importance = IMPORTANCE_NORMAL;
//TODO contentclass and nativebodytype and internetcpid
if (!isset($message->internetcpid)) $message->internetcpid = (defined('STORE_INTERNET_CPID')) ? constant('STORE_INTERNET_CPID') : INTERNET_CPID_WINDOWS1252;
$this->setFlag($mapimessage, $message);
//TODO checkcontentclass
if (!isset($message->contentclass)) $message->contentclass = DEFAULT_EMAIL_CONTENTCLASS;
if (!isset($message->nativebodytype)) $message->nativebodytype = $this->getNativeBodyType($messageprops);
if (!isset($message->nativebodytype)) {
$message->nativebodytype = $this->getNativeBodyType($messageprops);
}
elseif ($message->nativebodytype == SYNC_BODYPREFERENCE_UNDEFINED) {
$nbt = $this->getNativeBodyType($messageprops);
ZLog::Write(LOGLEVEL_INFO, sprintf("MAPIProvider->getEmail(): native body type is undefined. Set it to %d.", $nbt));
$message->nativebodytype = $nbt;
}
// reply, reply to all, forward flags
if (isset($message->lastverbexecuted) && $message->lastverbexecuted) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment