gad0lin
gad0lin

Reputation: 121

Microsoft graph API: empty BCC field

Scenario:

  1. Jenny and Tom have gmail accounts. Jerry is o365 user
  2. Jenny sends email to Tom (in TO: field) and BCC: Jerry.
  3. When Jerry gets message from graph api and doesn't see himself in BCC entry, which is empty (in both versions of API - 1 and beta).
  4. If Jenny, Jerry and Tom would be in the group and Jenny have sent email to group, it would exactly the same for Jerry. There is no way to distinguish those two cases.

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.

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

Here is what Jerry sees:

   {
        "@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"
        }
    },

Upvotes: 1

Views: 2249

Answers (1)

Marc LaFleur
Marc LaFleur

Reputation: 33124

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

This works this way in order to meet the requirements set forth for "Blind Carbon Copy" in RFC 2822.

Upvotes: 2

Related Questions