Commit 394ceefb authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #469 in ZP/z-push from...

Merge pull request #469 in ZP/z-push from bugfix/ZP-1158-outlook-over-as-sync-doesn-t-work to develop

* commit '63d76a86':
  ZP-1158 Outlook over AS sync doesn't work if native body type is 0.
parents 5095481c 63d76a86
...@@ -828,11 +828,19 @@ class MAPIProvider { ...@@ -828,11 +828,19 @@ class MAPIProvider {
if (!isset($message->importance)) if (!isset($message->importance))
$message->importance = IMPORTANCE_NORMAL; $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; if (!isset($message->internetcpid)) $message->internetcpid = (defined('STORE_INTERNET_CPID')) ? constant('STORE_INTERNET_CPID') : INTERNET_CPID_WINDOWS1252;
$this->setFlag($mapimessage, $message); $this->setFlag($mapimessage, $message);
//TODO checkcontentclass
if (!isset($message->contentclass)) $message->contentclass = DEFAULT_EMAIL_CONTENTCLASS; 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 // reply, reply to all, forward flags
if (isset($message->lastverbexecuted) && $message->lastverbexecuted) { 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