From b8a66142ef07f1b9e8b50d7bca5cc576ddb4063f Mon Sep 17 00:00:00 2001 From: Aumin Patel Date: Wed, 3 Jul 2019 17:12:08 +0530 Subject: [PATCH] ZCS-7397 : Not allowing to attach the signature and inline images as attachments when Reply/Reply All to the message --- WebRoot/js/zimbraMail/mail/model/ZmMailMsg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebRoot/js/zimbraMail/mail/model/ZmMailMsg.js b/WebRoot/js/zimbraMail/mail/model/ZmMailMsg.js index d45edb92ce..8ea07d6b63 100755 --- a/WebRoot/js/zimbraMail/mail/model/ZmMailMsg.js +++ b/WebRoot/js/zimbraMail/mail/model/ZmMailMsg.js @@ -2153,7 +2153,8 @@ function(findHits, includeInlineImages, includeInlineAtts) { if (!this.isRealAttachment(attach) || (attach.contentType.match(/^image/) && attach.contentId && attach.foundInMsgBody && !includeInlineImages) || (attach.contentDisposition == "inline" && attach.fileName && ZmMimeTable.isRenderable(attach.contentType, true) && !includeInlineAtts) || - (attach.contentDisposition == "inline" && attach.contentType === "application/pdf" && attach.contentId && attach.foundInMsgBody)) { + (attach.contentDisposition == "inline" && attach.contentType === "application/pdf" && attach.contentId && attach.foundInMsgBody) || + (attach.contentDisposition == "inline" || attach.contentDisposition == "attachment" && attach.contentType.match(/^image/) && attach.contentId && attach.foundInMsgBody)) { continue; }