$array['author'] = $message->getAuthorName();
$array['date'] = $message->getHeaderValue('Date');
$array['title'] = $message->getHeaderValue('Subject');
- $array['body'] = $message->toHtml();
+ $array['body'] = $message->getFormattedBody();
$array['link'] = Banana::$page->makeUrl(array('group' => $this->group, 'artid' => $key));
if (Banana::$protocole->canSend()) {
$array['reply'] = Banana::$page->makeUrl(array('group' => $this->group, 'artid' => $key, 'action' => 'new'));
'part' => $part,
'text' => $this->filename ? $this->filename : $this->content_type,
'img' => 'save')) . ']';
- } else {
- if ($type == 'multipart' && ($subtype == 'mixed' || $subtype == 'report')) {
- $text = '';
- foreach ($this->multipart as &$part) {
- $text .= $part->toHtml();
- }
- return $text;
+ } elseif ($type == 'multipart' && ($subtype == 'mixed' || $subtype == 'report')) {
+ $text = '';
+ foreach ($this->multipart as &$part) {
+ $text .= $part->toHtml();
}
+ return $text;
+ } else {
switch ($subtype) {
case 'html': return banana_formatHtml($this);
case 'enriched': case 'richtext': return banana_formatRichText($this);