简体   繁体   English

Microsoft Graph 发送 email api 会话索引不同

[英]Microsoft Graph send email api conversation Index is different

we are integrating the MS Graph API's in our c# application.我们正在 c# 应用程序中集成 MS Graph API。 sending mail is working fine by following this article Send Mail Doccumentation .按照这篇文章发送邮件文档发送邮件工作正常。 But I am facing an issue with ConversationIndex (Mainly Threads).但我面临着 ConversationIndex(主要是线程)的问题。 ConversationIndex of mail sent via API is different than recipients' replies to the same mail.通过 API 发送的邮件的对话索引与收件人对同一邮件的回复不同。 Due to this it is unable to identify the threads.因此,它无法识别线程。

Following is the payload used to send mail.以下是用于发送邮件的有效负载。 can anybody help me with any key or property I am missing while sending mail?任何人都可以帮助我处理我在发送邮件时丢失的任何钥匙或财产吗?

{
  "message": {
    "subject": "Meet for lunch?",
    "body": {
      "contentType": "Text",
      "content": "The new cafeteria is open."
    },
    "toRecipients": [
      {
        "emailAddress": {
          "address": "fannyd@contoso.onmicrosoft.com"
        }
      }
    ],
    "ccRecipients": [
      {
        "emailAddress": {
          "address": "danas@contoso.onmicrosoft.com"
        }
      }
    ]
  },
  "saveToSentItems": "false"
}

Structure of Conversation Index对话索引的结构

[reserved-1B] [timestamp-5B] [GUID-16B] [timestamp-5B][timestamp-5B]…[timestamp-5B] [保留-1B] [timestamp-5B] [GUID-16B] [timestamp-5B][timestamp-5B]…[timestamp-5B]

<-------------Header Block----------------><-------------------Child Blocks------------------> <-------------标题块----------------><---------------- ---儿童积木------------------->

All messages part of the same conversation thread has the same 16-Bytes GUID.同一对话线程的所有消息部分都具有相同的 16 字节 GUID。

5-Bytes [timestamp] in Header Block: System time when message was received converted into FILETIME format. Header 块中的 5 字节 [timestamp]:接收消息时的系统时间转换为 FILETIME 格式。

5-Bytes [timestamp] in Child Blocks: Child blocks are present only for Outlook messages, to indicate subsequent messages in a thread while keeping the header block attributes same.子块中的 5 字节 [时间戳]:子块仅存在于 Outlook 消息中,以指示线程中的后续消息,同时保持 header 块属性相同。 Every message reply to a conversation adds a [timestamp] at end to create a new conversationIndex.对对话的每条消息回复都会在末尾添加一个 [timestamp] 以创建一个新的 conversationIndex。

Relative ordering of messages belonging to same conversation thread: For all messages belonging to same GUID, SORT the messages by conversationIndex values.属于同一对话线程的消息的相对排序:对于属于同一 GUID 的所有消息,按 conversationIndex 值对消息进行排序。

Please refer to documentations here to understand better.请参阅此处的文档以更好地理解。

Tracking conversations 跟踪对话

ConversationIndex property ConversationIndex 属性

Please upvote if this helps.如果这有帮助,请点赞。 Thanks!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM