Commit 8d91a8c9 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #509 in ZP/z-push from develop to release/2.3

* commit 'e13b7b46':
  Revert "Merge pull request #465 in ZP/z-push from bugfix/ZP-1155-ios-mail-with-z-push-preview-show to develop"
  ZP-1191 Fix php-awl package name for rpm based distributions.
parent 56ee0576
...@@ -50,7 +50,7 @@ Z-push is an implementation of the ActiveSync protocol which is used 'over-the-a ...@@ -50,7 +50,7 @@ Z-push is an implementation of the ActiveSync protocol which is used 'over-the-a
Summary: Z-Push caldav backend Summary: Z-Push caldav backend
Group: Productivity/Networking/Email/Utilities Group: Productivity/Networking/Email/Utilities
Requires: %name-common = %version Requires: %name-common = %version
Requires: libawl-php Requires: php-awl
%if "%_repository" == "RHEL_6_PHP_56" || "%_repository" == "RHEL_7_PHP_56" %if "%_repository" == "RHEL_6_PHP_56" || "%_repository" == "RHEL_7_PHP_56"
Requires: rh-php56-php-common Requires: rh-php56-php-common
Requires: rh-php56-php-xml Requires: rh-php56-php-xml
...@@ -91,7 +91,7 @@ Backend for Z-Push, that adds the ability to combine backends. ...@@ -91,7 +91,7 @@ Backend for Z-Push, that adds the ability to combine backends.
Summary: Z-Push imap backend Summary: Z-Push imap backend
Group: Productivity/Networking/Email/Utilities Group: Productivity/Networking/Email/Utilities
Requires: %name-common = %version Requires: %name-common = %version
Requires: libawl-php Requires: php-awl
%if "%_repository" == "RHEL_6_PHP_56" || "%_repository" == "RHEL_7_PHP_56" %if "%_repository" == "RHEL_6_PHP_56" || "%_repository" == "RHEL_7_PHP_56"
Requires: rh-php56-php-imap Requires: rh-php56-php-imap
%else %else
......
...@@ -1049,16 +1049,16 @@ class BackendIMAP extends BackendDiff implements ISearchProvider { ...@@ -1049,16 +1049,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