How do I add In-Reply-To and References to 'Send mail'?

对着背影说爱祢 提交于 2020-01-15 09:49:06

问题


My feature was built before /createReply existed and relies on:

Set a custom header with Outlook/Office 365 REST

to add References and In-Reply-To to an email. This allows the app to send email replies w/o requiring Mail.ReadWrite, which is much more access than we need:

https://docs.microsoft.com/en-us/graph/permissions-reference#mail-permissions

Read and write access to user mail

Allows the app to create, read, update, and delete email in user mailboxes. Does not include permission to send mail.

Now those headers no longer get added. (I also tried Cannot pass "In-Reply-To" parameter to Microsoft Graph sendMail and arrived at the same result as the author.)

Is there a way for me to get around this regression without requesting additional user permission? Thanks!


https://docs.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http


回答1:


As of 2019-10-04, Microsoft published changes to their /reply endpoint which now allows for message:

https://docs.microsoft.com/en-us/graph/api/message-reply?view=graph-rest-1.0&tabs=http#request-body

https://github.com/microsoftgraph/microsoft-graph-docs/pull/5771

With the message field, I should be able to send replies w/o requesting additional permissions.



来源:https://stackoverflow.com/questions/58532471/how-do-i-add-in-reply-to-and-references-to-send-mail

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