FIX: The MIME/SMIME decoder in the POP3 adapter selects an incorrect MIME message part in BizTalk Server 2013 or 2016

Applies to: BizTalk Server 2013 R2 BranchBizTalk Server 2013 R2 DeveloperBizTalk Server 2013 R2 Enterprise More

Symptoms


When the MIME/SMIME decoder in the POP3 adapter creates a multi-part message in BizTalk Server 2013 R2 or 2016 CU1 from the parts of a MIME-encoded message that it receives, the adapter selects an incorrect message part as the BizTalk message body part.

Cause


According to the Processing Multi Part Messages with the POP3 Adapter topic on the Microsoft Developer Network (MSDN) website, when the Body Part Index is set to 0 and the Body Part Content Type is blank, the following algorithm is used to select the BizTalk message body part:
  • Use the first MIME part that has the Content-Description header set to "body"
  • Otherwise, use the first MIME part that has the Content-Type header set to "text/xml"
  • Otherwise, use the first MIME part that has the Content-Type header set to "text/plain"
  • Otherwise, use the first MIME part that has the Content-Type header set to "text/"
  • Otherwise, use the first MIME part

In this case in BizTalk Server 2013 R2 or 2016 CU1, the MIME/SMIME decoder incorrectly identifies “text/html” as the BizTalk message part.

Resolution


Cumulative update information

This problem was fixed in the following cumulative updates for BizTalk Server:

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.