From af9bbf947306e9b792429d69010b8fc27ea7001e Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Mon, 9 Mar 2015 22:33:29 -0700 Subject: #874: render message properly when the first part is a .txt attachment --- src/core/rfc822/MCAttachment.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/rfc822/MCAttachment.cpp') diff --git a/src/core/rfc822/MCAttachment.cpp b/src/core/rfc822/MCAttachment.cpp index 99f3caa0..0968ad83 100644 --- a/src/core/rfc822/MCAttachment.cpp +++ b/src/core/rfc822/MCAttachment.cpp @@ -589,6 +589,9 @@ Attachment * Attachment::attachmentWithSingleMIME(struct mailmime * mime) if (single_fields.fld_disposition->dsp_type->dsp_type == MAILMIME_DISPOSITION_TYPE_INLINE) { result->setInlineAttachment(true); } + else if (single_fields.fld_disposition->dsp_type->dsp_type == MAILMIME_DISPOSITION_TYPE_ATTACHMENT) { + result->setAttachment(true); + } } } -- cgit v1.2.3