Что произойдет, если почта была зашифрована, смогу ли я получить ее?какие метаданные и данные могут быть предоставлены
Да, вы все еще можете получить список сообщений, но вы не можете получить фактическое тело сообщения с помощью Graph API.Mail Body / BodyPreview будет отображаться следующим образом:
Это сообщение защищено Microsoft Information Protection.Вы можете открыть его с помощью Microsoft Outlook, доступного для iOS, Android, Windows и Mac OS.Загрузите Outlook для своего устройства здесь: http://aka.ms/protectedmessage. Microsoft Information Protection a
Моя строка запроса на тестирование:
https://graph.microsoft.com/v1.0/me/messages?$filter=startswith(subject,'Data Protected mail test')&top=1
Данные ответа (метаданные для вашей справки):
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('my user id')/messages",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/me/messages?$filter=startswith(subject%2c%27Data+Protected+mail+test%27)&top=1&$skip=1",
"value": [
{
"@odata.etag": "W/\"CQAAABYAAADI9sWjzaI4R7XL22NiFR43AACWTT+Z\"",
"id": "AAMkADQ5OWMzMGEwLTg4ZjktNDk1Ny05NzFmLWRh……bPeZSPaAAF6dOzdAAA=",
"createdDateTime": "2016-11-03T05:23:25Z",
"lastModifiedDateTime": "2018-09-04T11:19:40Z",
"changeKey": "CQAAABYAAADI9sWjzaI4R7XL22NiFR43AACWTT+Z",
"categories": [],
"receivedDateTime": "2016-11-03T05:23:25Z",
"sentDateTime": "2016-11-03T05:20:36Z",
"hasAttachments": false,
"internetMessageId": "<……@…….prod.outlook.com>",
"subject": "Data Protected mail test ",
"bodyPreview": "This message is protected with Microsoft Information Protection. You can open it using Microsoft Outlook, available for iOS, Android, Windows, and Mac OS. Get Outlook for your device here: http://aka.ms/protectedmessage. Microsoft Information Protection a",
"importance": "normal",
"parentFolderId": "……=",
"conversationId": "……=",
"isDeliveryReceiptRequested": null,
"isReadReceiptRequested": false,
"isRead": false,
"isDraft": false,
"webLink": "https://outlook.office365.com/owa/?ItemID= ……&exvsurl=1&viewmodel=ReadMessageItem",
"inferenceClassification": "focused",
"body": {
"contentType": "text",
"content": "This message is protected with Microsoft Information Protection. You can open it using Microsoft Outlook, available for iOS, Android, Windows, and Mac OS. Get Outlook for your device here: http://aka.ms/protectedmessage. Microsoft Information Protection allows you to ensure your emails can’t be copied or forwarded without your permission. Learn more at http://microsoft.com/rms."
},
"sender": {
"emailAddress": {
"name": "Test admin",
"address": "testadmin@microsoft.com"
}
},
"from": {
"emailAddress": {
"name": "Test admin",
"address": "testadmin@onmicrosoft.com"
}
},
"toRecipients": [
{
"emailAddress": {
"name": "Test admin",
"address": "testadmin@onmicrosoft.com"
} ,
"emailAddress": {
"name": "Test admin",
"address": "testadmin@onmicrosoft.com"
}
],
"ccRecipients": [],
"bccRecipients": [],
"replyTo": [],
"flag": {
"flagStatus": "notFlagged"
}
}
]
}