Microsoft graph API --> 查看消息是否为回复
Microsoft graph API --> To see if the message is a reply
我正在使用图表 API 从邮件文件夹中检索邮件。例如我收到一封邮件,我将更改或编辑主题行并存储对话 ID 以备将来使用。如果我收到同一电子邮件链的回复邮件,我会得到不同的对话 ID。怎么处理,我需要查一下回复邮件。
"subject": "Test",
"conversationId": "AAQkADU1YWM2MjMyLTVkOGQtNDdiMy05YWM4LTE4NTNlYzg1ZWRiNwAQADofdbq8_JtJkY8M5wnunlU=",
回复消息:
"subject": "Re: Test1",
"conversationId": "AAQkADU1YWM2MjMyLTVkOGQtNDdiMy05YWM4LTE4NTNlYzg1ZWRiNwAQAHu3pWtxNmBFjdfyjYaVGKc=",
我需要找到这个ts回复消息。
我建议您使用 In-Reply-To header https://wesmorgan.blogspot.com/2012/07/understanding-email-headers-part-ii.html in that way you can relate multiple replies (to the same replied to message) in a Message chain etc. You can either get the In-Reply-To header by requesting the InternetHeaders https://docs.microsoft.com/en-us/graph/api/resources/internetmessageheader?view=graph-rest-1.0(这将 return 所有 header)或者您可以请求扩展属性 只得到那个 属性 例如
https://graph.microsoft.com/v1.0/users('user@domain.com')/MailFolders('Inbox')/messages/?$select=ReceivedDateTime,Sender,Subject,IsRead,inferenceClassification,InternetMessageId,parentFolderId,hasAttachments,webLink&$Top=10&$expand=SingleValueExtendedProperties($filter=(Id%20eq%20'String%200x1042'))
我正在使用图表 API 从邮件文件夹中检索邮件。例如我收到一封邮件,我将更改或编辑主题行并存储对话 ID 以备将来使用。如果我收到同一电子邮件链的回复邮件,我会得到不同的对话 ID。怎么处理,我需要查一下回复邮件。
"subject": "Test",
"conversationId": "AAQkADU1YWM2MjMyLTVkOGQtNDdiMy05YWM4LTE4NTNlYzg1ZWRiNwAQADofdbq8_JtJkY8M5wnunlU=",
回复消息:
"subject": "Re: Test1",
"conversationId": "AAQkADU1YWM2MjMyLTVkOGQtNDdiMy05YWM4LTE4NTNlYzg1ZWRiNwAQAHu3pWtxNmBFjdfyjYaVGKc=",
我需要找到这个ts回复消息。
我建议您使用 In-Reply-To header https://wesmorgan.blogspot.com/2012/07/understanding-email-headers-part-ii.html in that way you can relate multiple replies (to the same replied to message) in a Message chain etc. You can either get the In-Reply-To header by requesting the InternetHeaders https://docs.microsoft.com/en-us/graph/api/resources/internetmessageheader?view=graph-rest-1.0(这将 return 所有 header)或者您可以请求扩展属性 只得到那个 属性 例如
https://graph.microsoft.com/v1.0/users('user@domain.com')/MailFolders('Inbox')/messages/?$select=ReceivedDateTime,Sender,Subject,IsRead,inferenceClassification,InternetMessageId,parentFolderId,hasAttachments,webLink&$Top=10&$expand=SingleValueExtendedProperties($filter=(Id%20eq%20'String%200x1042'))