本文介绍了Microsoft 图形 API:空 BCC 字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

场景:

  1. 珍妮和汤姆有 gmail 帐户.Jerry 是 o365 用户
  2. Jenny 将电子邮件发送给 Tom(在 TO:字段中)和 BCC:Jerry.
  3. 当 Jerry 从图形 API 收到消息并且在 BCC 条目中没有看到自己时,该条目为空(在 API 1 和测试版的两个版本中).
  4. 如果 Jenny、Jerry 和 Tom 将在群组中并且 Jenny 已向群组发送电子邮件,那么 Jerry 将完全相同.无法区分这两种情况.

我希望当用户在 BCC 中时,他应该在那里看到自己.我知道如果发件人是 O365 用户并且通过图形 API 获取消息,他将看到所有 BCC 用户.

I would expect that when user is in BCC he should see himself there.I know if sender is O365 user and getsMessage via graph API he will see all BCC users.

是否有任何 API 调用可以用来了解给定用户在给定消息的密件抄送中?

Is there any API call that I could use to learn that given user was in BCC of given message?

这是杰瑞看到的:

   {
        "@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": "[email protected]"
            }
        },
        "from": {
            "emailAddress": {
                "name": "Jenny",
                "address": "[email protected]"
            }
        },
        "toRecipients": [
            {
                "emailAddress": {
                    "name": "Tom",
                    "address": "[email protected]"
                }
            }
        ],
        "ccRecipients": [],
        "bccRecipients": [],
        "replyTo": [],
        "mentionsPreview": null,
        "flag": {
            "flagStatus": "notFlagged"
        }
    },

推荐答案

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

For any messages that comes from an external source (in this case GMail), there is no BCC data available.

这样做是为了满足 RFC 2822.

这篇关于Microsoft 图形 API:空 BCC 字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 01:44