mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:31:59 +01:00
[BUGFIX] Render multiple mail parts in mail view instead of only the last part
This commit is contained in:
parent
cbe283357b
commit
d9ed819b2b
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user