Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Incorrect delta result from GetAsDeltaGetResponse on mail folder

未关闭
#969 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
go
领域
api

调研方向

从复现中描述的 Delta().GetAsDeltaGetResponse() 和 Delta().WithUrl(deltaLink).GetAsDeltaGetResponse() 调用开始,跟踪返回的项目和 delta 链接是如何处理的。复现先向邮件文件夹添加较新的邮件、再添加较旧邮件的顺序。完成标准是每封发生更改的邮件在 delta 响应中只出现一次,并带有一个可用的新 delta 链接。

由索引模型根据 Issue 内容生成。

描述

status:waiting-for-triage type:bug
Describe the bug

I am using Delta handling against a mail folder and have found that consistently if older messages are added to the folder the delta query will return them twice in the result

Expected behavior

Expectation is that the delta call would only return a message once

How to reproduce

Reproduction-
(dates of the emails added to highlight the problem, not specifically needed to reproduce)

Folder with 1 email (14/01/2026)
Client.Me().MailFolders().ByMailFolderId(folderId).Messages().Delta().GetAsDeltaGetResponse() against the folder

  • returns 1 email plus the delta link for use later

move 2 more recent (20/01/2026 ) emails into the folder
Client.Me().MailFolders().ByMailFolderId(folderId).Messages().Delta().WithUrl(deltaLink).GetAsDeltaGetResponse()

  • returns 2 emails and new delta link

move 2 older emails (09/01/2026, 22/12/2025) into the folder
Client.Me().MailFolders().ByMailFolderId(folderId).Messages().Delta().WithUrl(newdeltaLink).GetAsDeltaGetResponse()

  • returns 4 emails (2x each of the emails it should be returning) and new delta link
SDK Version

v1.93.0

Latest version known to work for scenario above?

N/A

Known Workarounds

N/A

Debug output

No response

Configuration

No response

Other information

No response

主要语言
Go
星标
335
派生
43
平均合并
15 小时 19 分钟
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoftgraph/msgraph-sdk-go 的其他 Issue

查看 microsoftgraph/msgraph-sdk-go 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。