[BUGFIX] Render multiple mail parts in mail view instead of only the last part

This commit is contained in:
Kevin Lieser 2020-08-10 21:04:55 +00:00
parent cbe283357b
commit d9ed819b2b

View File

@ -185,10 +185,10 @@ class ModelSearchMessage extends Model {
$body = Piler_Mime_Decode::fixMimeBodyPart($parts[$i]['headers'], $parts[$i]['body']);
if($parts[$i]['headers']['content-type']['type'] == 'text/html') {
$this->message['text/html'] = $purifier->purify($body);
$this->message['text/html'] .= $purifier->purify($body);
}
else {
$this->message['text/plain'] = $body;
$this->message['text/plain'] .= $body;
}
}