none
Outlook endpoint API /attachments is ignoring email headers if the atatchment is a MEssage ItemAttachment RRS feed

  • Question

  • I'm trying to send the email as an attachment to a user by creating draft message then attaching the #Microsoft.OutlookServices.ItemAttachment using /attachments

    The `Item` parameter sent in /attachments API call is the object received from API call made to get-a-message.

    But when the email is received in the mailbox the ItemAttachment is missing the original email headers and the original email attachment.


    The attachment is having only the following headers:


        From: --Removed--
        To: --Removed--
        Subject: --Removed--
        Thread-Topic: --Removed--
        Thread-Index: --Removed--
        Message-ID: --Removed--
        Reply-To: --Removed--
        X-MS-Has-Attach:
        X-MS-TNEF-Correlator:
        X-MS-Exchange-Organization-RecordReviewCfmType: 0
        Content-Type: multipart/alternative;
            boundary="_000_10712912171441552989604058localhost_"
        MIME-Version: 1.0    


    Note: I'm trying to forward the email as an attachment silently/in background.
    Also, Is there a way to get Message mime content instead of the json Message body ?

    UCMA WhiteBoard

    Tuesday, April 30, 2019 7:36 AM