Fix fallback if no message strucutre is provided by the imap server

release-0.6
thomascube 17 years ago
parent 70aa900cba
commit 0a99895ead

@ -1248,7 +1248,10 @@ class rcube_imap
*/
function &get_body($uid, $part=1)
{
return $this->get_message_part($uid, $part);
$headers = $this->get_headers($uid);
return rcube_charset_convert(
$this->mime_decode($this->get_message_part($uid, $part), 'quoted-printable'),
$headers->charset ? $headers->charset : $this->default_charset);
}

@ -728,7 +728,7 @@ function rcmail_message_body($attrib)
}
}
else
$out .= $MESSAGE->body;
$out .= html::div('message-part', html::div('pre', $MESSAGE->body));
$ctype_primary = strtolower($MESSAGE->structure->ctype_primary);

Loading…
Cancel
Save