Skip to main content

Module messages

Module messages 

Source
Expand description

Microsoft Graph messages (users.messages): list, delta, get (JSON and raw MIME), create draft (JSON and raw MIME), update, delete, move, copy, send and the nested attachments collection.

https://learn.microsoft.com/en-us/graph/api/resources/message

Modules§

attachments
Microsoft Graph message attachments (users.messages.attachments): create, list, get raw content, delete.
copy
Copy a Microsoft Graph message to a folder (POST /me/messages/{id}/copy); returns the new copy.
create
Create a Microsoft Graph draft message (POST /me/messages or POST /me/mailFolders/{id}/messages).
create_mime
Create a Microsoft Graph message from raw MIME (POST /me/messages or POST /me/mailFolders/{folder}/messages); the MIME is base64-encoded and posted as text/plain, as Graph requires, and the created draft message resource is returned.
delete
Delete a Microsoft Graph message (DELETE /me/messages/{id}).
delta
Track changes to Microsoft Graph messages (GET /me/messages/delta or GET /me/mailFolders/{id}/messages/delta).
get
Get a Microsoft Graph message (GET /me/messages/{id}).
get_raw
Get the raw MIME content of a Microsoft Graph message (GET /me/messages/{id}/$value).
list
List Microsoft Graph messages (GET /me/messages or GET /me/mailFolders/{id}/messages).
move
Move a Microsoft Graph message to a folder (POST /me/messages/{id}/move); creates a copy in the destination and returns it with a new id.
send
Send a Microsoft Graph draft message (POST /me/messages/{id}/send); the draft is moved to Sent Items.
update
Update a Microsoft Graph message (PATCH /me/messages/{id}); used to change isRead, the follow-up flag, categories, etc.

Structs§

MsgraphEmailAddress
A named email address (recipient.emailAddress).
MsgraphFollowupFlag
Follow-up flag set on a message.
MsgraphItemBody
The body of a message, in text or HTML format.
MsgraphMessage
A message in a mail folder. Doubles as the create/update body, where only the set (non-empty) fields are serialized.
MsgraphRecipient
A message recipient, wrapping an email address.

Enums§

MsgraphBodyType
Format of a message body.
MsgraphFlagStatus
Status of a follow-up flag.
MsgraphImportance
Importance of a message.