none
EWS Java API 1.2 - Missing body/boundaries for signed emails with embedded objects RRS feed

  • Question

  • Hi,

        I am using EWS JAVA API 1.2 to connect to exchange server 2010 and read emails.

    I am running to an issue with emails which contain embedded objects and are signed using S/MIME. The processed email in java is missing body or attachments. 

    I see that MIME headers, first class properties as well as extended properties do not contain the body or boundary indication. 

    For eg: a signed email with no embedded objects which gets successfully processed has following headers.

    Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
    micalg=SHA1; boundary="----=_NextPart_000_071B_01CE57B7.F8EDF8A0"
    MIME-Version: 1.0

    ------=_NextPart_000_071B_01CE57B7.F8EDF8A0
    Content-Type: multipart/mixed;
    boundary="----=_NextPart_001_071C_01CE57B7.F8EDF8A0"

    A signed email with embedded object is as follows: How do I get body or attachment for this email?

     <4CFBF635768FDD4BB93EA6EEEBE2C1A40A7367B1@exchange10.com>
    Accept-Language: en-US
    Content-Language: en-US
    X-MS-Exchange-Organization-AuthAs: Internal
    X-MS-Exchange-Organization-AuthMechanism: 04
    X-MS-Exchange-Organization-AuthSource: exchange10.com
    X-MS-Has-Attach: yes
    X-MS-Exchange-Organization-SCL: -1
    X-MS-TNEF-Correlator:
    Content-Type: application/pkcs7-mime; smime-type=signed-data; name="smime.p7m"
    Content-Dis; filename="smime.p7m"
    Content-Transfer-Encoding: base64
    MIME-Version: 1.0

    Thanks.

    Thursday, May 23, 2013 8:25 PM