简体   繁体   English

为什么发件箱电子邮件在 microsoft graph api 中始终是一个空数组?

[英]Why outbox emails is always an empty array in microsoft graph api?

I am trying to read my email from Outbox folder.我正在尝试从发件箱文件夹中读取我的 email。

GEThttps://graph.microsoft.com/v1.0/me/mailfolders/outbox/messages获取https://graph.microsoft.com/v1.0/me/mailfolders/outbox/messages

I'm using mail flow rules to defear the delivery of the messages by 1 minutes, so the email is going to outbox for almost 1 minute before sending the message我正在使用邮件流规则将邮件的传递延迟 1 分钟,因此 email 将在发送邮件前等待近 1 分钟的发件箱

The problem is I'm getting an empty array everytime I query for the outbox folder问题是每次查询发件箱文件夹时都会得到一个空数组

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('3bab4ea2-2100-4265-9dee-6aac1adc666a')/mailFolders('outbox')/messages",
    "value": []
}

Is something wrong?有什么问题吗?

Depends how you send the email eg if you send from Outlook and the client is in Cache Mode then when you use delayed delivery the Message is stored in the Outbox in the OST Cache and not synced to the server so wouldn't be available online (and in the Graph).取决于您发送 email 的方式,例如,如果您从 Outlook 发送并且客户端处于缓存模式,那么当您使用延迟传递时,消息将存储在 OST 缓存中的发件箱中并且未同步到服务器,因此无法在线使用(并在图表中)。 You might want to test it using OWA instead but with OWA it saves deferred delivery messages to the drafts folder not the Outbox.您可能想改用 OWA 对其进行测试,但使用 OWA 时,它会将延迟传递的邮件保存到草稿文件夹而不是发件箱。

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

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