return array(
$this->_mimepart->getMimeId() => array(
'data' => $html['data'],
- 'status' => $html['status'],
+ 'status' => array(),
'type' => $this->_mimepart->getType(true)
)
);
/* Get phishing warning. */
$status = array();
- if ($phish_warn) {
+ if ($inline && $phish_warn) {
$phish_warning = sprintf(_("%s: This message may not be from whom it claims to be. Beware of following any links in it or of providing the sender with any personal information.") . ' ' . _("The links that caused this warning have the same background color as this message."), _("Warning"));
if (!$inline) {
$phish_warning = String::convertCharset($phish_warning, NLS::getCharset(), $this->_mimepart->getCharset());
}
/* Only display images if specifically allowed by user. */
- if (!IMP::printMode() &&
+ if ($inline &&
+ !IMP::printMode() &&
$GLOBALS['prefs']->getValue('html_image_replacement') &&
preg_match($this->_img_regex, $data)) {
/* Make sure the URL parameters are correct for the current