Do not try to fetch mime part content if the content is already set

This commit is contained in:
Hadi Nategh 2017-07-14 09:50:19 +02:00
parent 726fc91e07
commit 78fa78983c

View File

@ -4827,7 +4827,9 @@ class Mail
{
// some Servers append PropertyFile___ ; strip that here for display
// RB: not sure what this is: preg_replace('/PropertyFile___$/','',$this->decodeMimePart($mimePartBody, $_structure->encoding, $this->getMimePartCharset($_structure))),
$this->fetchPartContents($_uid, $_structure, $_stream, $_preserveSeen);
// Should not try to fetch if the content is already there (e.g. Smime encrypted message)
if (empty($_structure->getContents())) $this->fetchPartContents($_uid, $_structure, $_stream, $_preserveSeen);
$bodyPart = array(
'body' => $_structure->getContents(array(