Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZCS-7397 : Signature/inline image is getting added as an attachment when replying to emails with "Add attachments from original message" #500

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

auminpatel
Copy link
Contributor

No description provided.

…attachments when Reply/Reply All to the message
@barrydegraaff
Copy link

I have seen this bug, and also confirm that this PR fixes it.

@@ -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)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm, is the two condition groups correct?
attach.contentDisposition == "inline"
OR
attach.contentDisposition == "attachment" && attach.contentType.match(/^image/) && attach.contentId && attach.foundInMsgBody

Isn't attach.contentDisposition == "inline" too wide? the 3rd conditions will be unnecessary...

3rd: (attach.contentDisposition == "inline" && attach.contentType === "application/pdf" && attach.contentId && attach.foundInMsgBody)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants