Office365 - Rest API - Message ItemAttachment loosing headers & attachments when forwarded

拜拜、爱过 提交于 2020-01-06 08:42:06

问题


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 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.

Is there a way to get Message mime content instead of the json Message body ?

来源:https://stackoverflow.com/questions/55631353/office365-rest-api-message-itemattachment-loosing-headers-attachments-when

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!