Commit 99bbe287 authored by mku's avatar mku

ZP-146 #comment Windows Phone 7.5 does not show email preview #time 2h

git-svn-id: https://z-push.org/svn/z-push/trunk@1353 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 4595b326
......@@ -2208,6 +2208,11 @@ class MAPIProvider {
if ($bpo->GetTruncationSize() != false && $bpReturnType != SYNC_BODYPREFERENCE_MIME && $message->asbody->estimatedDataSize > $bpo->GetTruncationSize()) {
$message->asbody->data = Utils::Utf8_truncate($message->asbody->data, $bpo->GetTruncationSize());
$message->asbody->truncated = 1;
}
// set the preview or windows phones won't show the preview of an email
if (Request::GetProtocolVersion() >= 14.0) {
$message->asbody->preview = Utils::Utf8_truncate(MAPIUtils::readPropStream($mapimessage, PR_BODY), $bpo->GetPreview());
}
}
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