Probelm with reading attchments from Digitally Signed Emai RRS feed

  • Question

  • Hi,

    We are using Graph API  "messages" method to get the mail items. We are able to read mail items successfully. But we have a problem with "Digitally Signed" emails. We have a mail item with attachment and mail item was Digital signed.  When we are calling the "messages" method, In the metadata of the result itself showing there are no attachments.

    When we call the Graph API method to get the attachments directly using the mail id, in the results it is not showing the original attachment, it is showing the one attachment and content type as "multipart/signed".

    I am using the Graph Explorer developer site to check the results.

    My call flow is like...

    It displays the mail message and "hasAttachments": false.***MESSAGE_ID***/attachments

    It displays only one attachment in results(content type: multipart/Signed) and not showing the original attachment.

    Result <g class="gr_ gr_42 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation multiReplace" data-gr-id="42" id="42">..</g>

    "@odata.type": "#microsoft.graph.fileAttachment",
      "id": "***",          
    "lastModifiedDateTime": "2019-04-03T11:40:22Z",
    "name": "smime.p7m",
    "contentType": "multipart/signed",
    "size": 57986,
    "isInline": false,
    "contentId": null,
    "contentLocation": null,

    How can we get the attachments using the Graph API when mail is Digitally Signed?



    • Edited by p_kiran Friday, June 14, 2019 12:13 PM
    Friday, June 14, 2019 12:07 PM