Commit be492b1d authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-828 Fixed estimatedDataSize.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 0faf152b
...@@ -1127,6 +1127,7 @@ class BackendIMAP extends BackendDiff implements ISearchProvider { ...@@ -1127,6 +1127,7 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
} }
$output->asbody->data = StringStreamWrapper::Open($data); $output->asbody->data = StringStreamWrapper::Open($data);
$output->asbody->estimatedDataSize = strlen($data);
unset($data); unset($data);
$output->asbody->type = $bpReturnType; $output->asbody->type = $bpReturnType;
if ($bpReturnType == SYNC_BODYPREFERENCE_MIME) { if ($bpReturnType == SYNC_BODYPREFERENCE_MIME) {
...@@ -1136,7 +1137,6 @@ class BackendIMAP extends BackendDiff implements ISearchProvider { ...@@ -1136,7 +1137,6 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
else { else {
$output->nativebodytype = $bpReturnType; $output->nativebodytype = $bpReturnType;
} }
$output->asbody->estimatedDataSize = strlen($output->asbody->data);
$bpo = $contentparameters->BodyPreference($output->asbody->type); $bpo = $contentparameters->BodyPreference($output->asbody->type);
if (Request::GetProtocolVersion() >= 14.0 && $bpo->GetPreview()) { if (Request::GetProtocolVersion() >= 14.0 && $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