From d9ed819b2b5c6daf94a1923c561334ebd6fea8ad Mon Sep 17 00:00:00 2001 From: Kevin Lieser Date: Mon, 10 Aug 2020 21:04:55 +0000 Subject: [PATCH] [BUGFIX] Render multiple mail parts in mail view instead of only the last part --- webui/model/search/message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 0178f8f6..670f2245 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -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; } }