Commit 4b293f5e authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1240 Also HTML-trucate bodies from IMAP.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 9015daf4
...@@ -1124,7 +1124,8 @@ class BackendIMAP extends BackendDiff implements ISearchProvider { ...@@ -1124,7 +1124,8 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
} }
} }
$output->asbody->data = StringStreamWrapper::Open($data); // indicate in open that the data is HTML so it can be truncated correctly if required
$output->asbody->data = StringStreamWrapper::Open($data, ($bpReturnType == SYNC_BODYPREFERENCE_HTML));
$output->asbody->estimatedDataSize = strlen($data); $output->asbody->estimatedDataSize = strlen($data);
unset($data); unset($data);
$output->asbody->type = $bpReturnType; $output->asbody->type = $bpReturnType;
......
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