Microsoft图形API:空BCC字段

时间:2017-11-15 19:58:38

标签: microsoft-graph

情景:

  1. Jenny和Tom有gmail帐户。杰瑞是o365用户
  2. Jenny向Tom发送电子邮件(在TO:字段中)和BCC:Jerry。
  3. 当Jerry从图表api获取消息并且没有在BCC条目中看到自己时,这是空的(在两个版本的API - 1和beta中)。
  4. 如果珍妮,杰瑞和汤姆都在小组中,而珍妮已经向小组发送了电子邮件,那对杰瑞来说就完全一样了。没有办法区分这两种情况。
  5. 我希望当用户在BCC时,他应该看到自己在那里。 我知道如果发件人是O365用户,并且通过图谱API获取了getMessage,他将会看到所有BCC用户。

    是否有任何API调用我可以用来了解给定用户是否在给定消息的BCC中?

    这是杰瑞所看到的:

       {
            "@odata.etag": "W/\"CQAAABYAAACWhXAbJxpFRb0V3o8I2vIPAACwRstA\"",
            "id": "AAMkAGMyNDE4NGI5LTRlNmItNDUzMy04ZTBlLTgxNjM3MDZhODE5NgBGAAAAAABT6x1NTxG_S7bw4uHJw-_tBwDEbTtXm_E6Rr8LT_x2xj5KAAAAnJfJAACWhXAbJxpFRb0V3o8I2vIPAACwGG_qAAA=",
            "createdDateTime": "2017-11-15T19:50:57Z",
            "lastModifiedDateTime": "2017-11-15T19:50:57Z",
            "changeKey": "CQAAABYAAACWhXAbJxpFRb0V3o8I2vIPAACwRstA",
            "categories": [],
            "receivedDateTime": "2017-11-15T19:50:57Z",
            "sentDateTime": "2017-11-15T19:50:54Z",
            "hasAttachments": false,
            "internetMessageId": "<CAHF5u5KsOQd43c4dtnx0uTQRor_dt7Y1uy=F3G4i6-c+TdUgug@mail.gmail.com>",
            "subject": "test bcc=",
            "bodyPreview": "test bcc",
            "importance": "normal",
            "parentFolderId": "AAMkAGMyE4NGI5LTRlNmItNDUzMy04ZTBlLTgxNjM3MDZhODE5NgAuAAAAAABT6x1NTxG_S7bw4uHJw-_tAQDEbTtXm_E6Rr8LT_x2xj5KAAAAnJfJAAA=",
            "conversationId": "AAQkAGMyGI5LTRlNmItNDUzMy04ZTBlLTgxNjM3MDZhODE5NgAQAMaAYzrmsyxGq7ZujLh23q0=",
            "conversationIndex": "AQHTXxoBjOuazLEartm6MuHberQ==",
            "isDeliveryReceiptRequested": null,
            "isReadReceiptRequested": false,
            "isRead": false,
            "isDraft": false,
            "webLink": "https://outlook.office365.com/owa/?ItemID=AAMkAGMyNDE4NAACwGG%2BqAAA%3D&exvsurl=1&viewmodel=ReadMessageItem",
            "inferenceClassification": "focused",
            "unsubscribeData": [],
            "unsubscribeEnabled": false,
            "body": {
                "contentType": "html",
                "content": "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=utf-8\">\r\n</head>\r\n<body>\r\n<div dir=\"ltr\">test bcc<br>\r\n</div>\r\n</body>\r\n</html>\r\n"
            },
            "sender": {
                "emailAddress": {
                    "name": "Jenny",
                    "address": "jenny1234@gmail.com"
                }
            },
            "from": {
                "emailAddress": {
                    "name": "Jenny",
                    "address": "jenny1234@gmail.com"
                }
            },
            "toRecipients": [
                {
                    "emailAddress": {
                        "name": "Tom",
                        "address": "tom1234@gmail.com"
                    }
                }
            ],
            "ccRecipients": [],
            "bccRecipients": [],
            "replyTo": [],
            "mentionsPreview": null,
            "flag": {
                "flagStatus": "notFlagged"
            }
        },
    

1 个答案:

答案 0 :(得分:2)

对于来自外部源(在本例中为GMail)的任何消息,没有可用的BCC数据。

这样做是为了满足RFC 2822中“盲碳复制”的要求。