From c82d09a052b929be2087a73d95be8657a33027b3 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 17 Dec 2015 03:20:08 -0500
Subject: [PATCH] Fix handling of message/rfc822 attachments on replies and forwards (#1490607)

---
 program/steps/mail/func.inc |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 7c30673..12acaf8 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1218,17 +1218,6 @@
                 // fetch part body
                 $body = $MESSAGE->get_part_body($part->mime_id, true);
 
-                // extract headers from message/rfc822 parts
-                if ($part->mimetype == 'message/rfc822') {
-                    $msgpart = rcube_mime::parse_message($body);
-                    $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));
-                    }
-                }
-
                 // message is cached but not exists (#1485443), or other error
                 if ($body === false) {
                     rcmail_message_error($MESSAGE->uid);

--
Gitblit v1.9.1