Commit baf2536f authored by Sebastian Kummer's avatar Sebastian Kummer

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

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

* commit '6b6c8a5d':
  ZP-1098 Use native body type algorithm to set native body type if it is undefined for appointments.
  ZP-1098 Set native body type to plain if it is undefined for appointments.
parents 57d1b097 6b6c8a5d
......@@ -312,7 +312,14 @@ class MAPIProvider {
}
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->getAppointment(): native body type is undefined. Set it to %d.", $nbt));
$message->nativebodytype = $nbt;
}
// If the user is working from a location other than the office the busystatus should be interpreted as free.
if (isset($message->busystatus) && $message->busystatus == fbWorkingElsewhere) {
......
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