$signed =& $this->getSignedPart();
if ($signed !== $this) {
return $signed->getText();
- }
+ }
$this->decodeContent();
return $this->body;
}
'artid' => Banana::$artid,
'part' => $part)))
. '" alt="' . banana_htmlentities($this->filename) . '" />';
+ } else if ($type == 'multipart' && $subtype == 'alternative') {
+ $types =& Banana::$msgshow_mimeparts;
+ foreach ($types as $type) {
+ @list($type, $subtype) = explode('/', $type);
+ $part = $this->getParts($type, $subtype);
+ if (count($part) > 0) {
+ return $part[0]->toHtml();
+ }
+ }
} elseif ((!in_array($type, Banana::$msgshow_mimeparts)
&& !in_array($this->content_type, Banana::$msgshow_mimeparts))
|| $this->disposition == 'attachment') {