Commit 6b6c8a5d authored by Manfred Kutas's avatar Manfred Kutas

ZP-1098 Use native body type algorithm to set native body type if it is

undefined for appointments.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 6af53f58
...@@ -316,8 +316,9 @@ class MAPIProvider { ...@@ -316,8 +316,9 @@ class MAPIProvider {
$message->nativebodytype = $this->getNativeBodyType($messageprops); $message->nativebodytype = $this->getNativeBodyType($messageprops);
} }
elseif ($message->nativebodytype == SYNC_BODYPREFERENCE_UNDEFINED) { elseif ($message->nativebodytype == SYNC_BODYPREFERENCE_UNDEFINED) {
ZLog::Write(LOGLEVEL_INFO, "MAPIProvider->getAppointment(): native body type is undefined. Set it to SYNC_BODYPREFERENCE_PLAIN."); $nbt = $this->getNativeBodyType($messageprops);
$message->nativebodytype = SYNC_BODYPREFERENCE_PLAIN; 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 the user is working from a location other than the office the busystatus should be interpreted as free.
......
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