Commit e88178be authored by mku's avatar mku

ZP-253 #comment Droid 3 truncates emails on fetch #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1471 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent ed3fdf98
...@@ -2228,7 +2228,11 @@ class MAPIProvider { ...@@ -2228,7 +2228,11 @@ class MAPIProvider {
$this->setMessageBodyForType($mapimessage, $bpReturnType, $message); $this->setMessageBodyForType($mapimessage, $bpReturnType, $message);
//only set the truncation size data if device set it in request //only set the truncation size data if device set it in request
if ($bpo->GetTruncationSize() != false && $bpReturnType != SYNC_BODYPREFERENCE_MIME && $message->asbody->estimatedDataSize > $bpo->GetTruncationSize()) { if ( $bpo->GetTruncationSize() != false &&
$bpReturnType != SYNC_BODYPREFERENCE_MIME &&
$message->asbody->estimatedDataSize > $bpo->GetTruncationSize() &&
$contentparameters->GetTruncation() != SYNC_TRUNCATION_ALL // do not truncate message if the whole is requested, e.g. on fetch
) {
$message->asbody->data = Utils::Utf8_truncate($message->asbody->data, $bpo->GetTruncationSize()); $message->asbody->data = Utils::Utf8_truncate($message->asbody->data, $bpo->GetTruncationSize());
$message->asbody->truncated = 1; $message->asbody->truncated = 1;
......
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