Commit e13b7b46 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #508 in ZP/z-push from...

Merge pull request #508 in ZP/z-push from bugfix/ZP-1155-ios-mail-with-z-push-preview-show to develop

* commit 'e2107b9b':
  Revert "Merge pull request #465 in ZP/z-push from bugfix/ZP-1155-ios-mail-with-z-push-preview-show to develop"
parents cb65e6a8 e2107b9b
...@@ -1052,16 +1052,16 @@ class BackendIMAP extends BackendDiff implements ISearchProvider { ...@@ -1052,16 +1052,16 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
// We need the text body even though MIME is used, for the preview // We need the text body even though MIME is used, for the preview
$textBody = ""; $textBody = "";
Mail_mimeDecode::getBodyRecursive($message, "plain", $textBody, true); Mail_mimeDecode::getBodyRecursive($message, "html", $textBody, true);
if (strlen($textBody) > 0) { if (strlen($textBody) > 0) {
if ($bpReturnType != SYNC_BODYPREFERENCE_MIME) { if ($bpReturnType != SYNC_BODYPREFERENCE_MIME) {
$bpReturnType = SYNC_BODYPREFERENCE_PLAIN; $bpReturnType = SYNC_BODYPREFERENCE_HTML;
} }
} }
else { else {
Mail_mimeDecode::getBodyRecursive($message, "html", $textBody, true); Mail_mimeDecode::getBodyRecursive($message, "plain", $textBody, true);
if ($bpReturnType != SYNC_BODYPREFERENCE_MIME) { if ($bpReturnType != SYNC_BODYPREFERENCE_MIME) {
$bpReturnType = SYNC_BODYPREFERENCE_HTML; $bpReturnType = SYNC_BODYPREFERENCE_PLAIN;
} }
} }
......
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