Commit b01c0cf8 authored by skummer's avatar skummer

ZP-171

- fixed: set ASBody->Preview only when requested by device

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