Aleksander Machniak
2015-12-14 6e71c958fcc89a002816f28397776f4a633b96a5
Fix also charset encoding of message/rfc822 part bodies (#1490606)
1 files modified
6 ■■■■ changed files
program/steps/mail/func.inc 6 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -1221,12 +1221,12 @@
                // extract headers from message/rfc822 parts
                if ($part->mimetype == 'message/rfc822') {
                    $msgpart = rcube_mime::parse_message($body);
                    if (!empty($msgpart->headers)) {
                    $body    = rcube_message::format_part_body($msgpart->body, $msgpart);
                    if (!empty($msgpart->headers) && !empty($body)) {
                        $part = $msgpart;
                        $out .= html::div('message-partheaders', rcmail_message_headers(sizeof($header_attrib) ? $header_attrib : null, $part->headers));
                    }
                    $body = $part->body;
                }
                // message is cached but not exists (#1485443), or other error