From 31629aeea5ec8c8aa976e92b773a987d9235b2e3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 12 Jan 2017 12:37:20 +0100 Subject: [PATCH] * Mail: Fix can not display content of resolved winmail attachments in compose dialog --- mail/inc/class.mail_compose.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 099dd63d51..cfdfe4b9f5 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -1690,7 +1690,8 @@ class mail_compose $_folder, $attachment['name'], $attachment['mimeType'], - $attachment['size']); + $attachment['size'], + $attachment['is_winmail']); } } } @@ -1828,7 +1829,7 @@ class mail_compose } } - function addMessageAttachment($_uid, $_partID, $_folder, $_name, $_type, $_size) + function addMessageAttachment($_uid, $_partID, $_folder, $_name, $_type, $_size, $_is_winmail= null) { $this->sessionData['attachments'][]=array ( 'uid' => $_uid, @@ -1837,6 +1838,7 @@ class mail_compose 'type' => $_type, 'size' => $_size, 'folder' => $_folder, + 'winmailFlag' => $_is_winmail, 'tmp_name' => mail_ui::generateRowID($this->mail_bo->profileID, $_folder, $_uid).'_'.(!empty($_partID)?$_partID:count($this->sessionData['attachments'])+1), ); }