Converting a Clear-Signed Message in Internet Format into a Message Object

To convert a clear-signed message from the Internet e-mail message format to the Message object format, perform the following steps:

  1. From the message MIME entity, promote message header fields to Message object properties, as specified in [MS-OXCMAIL].

  2. Create an Attachment object.

  3. Set Attachment object properties, as specified in section

  4. Remove all header fields except the Content-Type header field, as specified in [RFC2045] section 5, from the message MIME entity.

  5. Save the resulting MIME entity as content of the Attachment object created in step 2. For example, set the value of the PidTagAttachDataBinary property ([MS-OXPROPS] section 2.589) on the Attachment object.