我从 Google API 收到的消息数大约有差异。 10% 来自我在 Gmail 上看到的内容

The message count I'm getting from Google API differs in approx. 10% from what I see on Gmail

我正在使用 Python 通过 Gmail API 连接到我的 Gmail 帐户。

当 运行 example on Google Developers website — the message count I'm getting from Google API differs in approximately 10% from what I see on Gmail 中的代码(在 All Mail 选项卡下)时,即使我将垃圾邮件添加到计算中。

你知道可能是什么原因吗?

谢谢。

您在 Gmail UI 中看到的数字将是对话总数,而不是邮件总数,除非您 turn conversation mode off