diff --git a/src/attachmentHelper.cpp b/src/attachmentHelper.cpp index 0388ae7c..82e19f3f 100644 --- a/src/attachmentHelper.cpp +++ b/src/attachmentHelper.cpp @@ -64,6 +64,11 @@ const bool attachmentHelper::isBodyPartAnAttachment(ref part) if (type.getType() != mediaTypes::TEXT && type.getType() != mediaTypes::MULTIPART) { + // If a "Content-Id" field is present, it might be an + // embedded object (MHTML messages) + if (part->getHeader()->hasField(vmime::fields::CONTENT_ID)) + return false; + return true; } }