Share via

Microsoft Graph Email Failures

totally_gizmo 96 Reputation points
2022-05-19T20:14:39.363+00:00

As stated in the forum, functionality that is available in EWS appear to be missing from Graph API.

For example, if I have an archived message, I am able to transport the same message back to my inbox. This is irrespective of whether I am the owner of that message. With the Graph API, I am able to "send" this message back to myself. No errors are received. In my inbox, I receive a message from Exchange Server calling the message spam. Transporting/importing archived messages should be supported.

Process
Using the create message method will allow the create a new message, but only as a draft. This method does not preserve the received/sent data. Additionally, the send API will not allow a message to be sent when the sender and the logged-in user do not match.

2 Questions
Is there any capability within Microsoft Graph to perform the activity described?
Is there a method to catch an error when a message is not sent/delivered?

Using

  • msgraph-sdk-go v.22, msgraph-sdk-go-core v.24
  • I have brought this issue up within the discussion forums for the sdk; however, I need to know specifically if GraphAPI supports OR will this functionality
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Michel de Rooij 1,626 Reputation points MVP
    2022-05-19T22:09:12.367+00:00

    Resending the message creates another message. What you really want - assuming from your message - is moving the message back to the inbox from the well-known archive folder, or do you mean moving the item from the in-place archive (personal archive) back to the primary mailbox? Archiving is just one EWS call, in both cases. Moving items back from archive folder to inbox is a matter of moving the item. Moving the item from archive to primary mailbox cannot be done with Graph, as it lacks support for multiple mailboxes when I last checked (I wrote an EWS unarchiving script for this purpose).

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.