Not an attachment if a 'Content-Id' field is present.

This commit is contained in:
Vincent Richard 2005-10-14 18:21:43 +00:00
parent 26cad9e258
commit 623857cb80

View File

@ -64,6 +64,11 @@ const bool attachmentHelper::isBodyPartAnAttachment(ref <const bodyPart> 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;
}
}