Commit 59894ebc authored by mku's avatar mku

ZP-155 #comment Contact sync with Windows Mobile 6.1/6.5 does not work #time 30m

git-svn-id: https://z-push.org/svn/z-push/trunk@1358 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 6c65d763
......@@ -2129,9 +2129,12 @@ class MAPIProvider {
if (Request::GetProtocolVersion() >= 12.0) {
$message->asbody = new SyncBaseBody();
$message->asbody->type = $bpReturnType;
$message->asbody->data = ($bpReturnType == SYNC_BODYPREFERENCE_RTF) ? base64_encode($body) :
(isset($message->internetcpid) && $message->internetcpid == INTERNET_CPID_WINDOWS1252 && $bpReturnType == SYNC_BODYPREFERENCE_HTML) ?
windows1252_to_utf8($body, "", true) : w2u($body);
if ($bpReturnType == SYNC_BODYPREFERENCE_RTF)
$message->asbody->data = base64_encode($body);
elseif (isset($message->internetcpid) && $message->internetcpid == INTERNET_CPID_WINDOWS1252 && $bpReturnType == SYNC_BODYPREFERENCE_HTML)
$message->asbody->data = windows1252_to_utf8($body, "", true);
else
$message->asbody->data = w2u($body);
$message->asbody->estimatedDataSize = strlen($message->asbody->data);
}
else {
......
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