gpt4 book ai didi

google-api - 从 Gmail API 获取没有历史记录的邮件

转载 作者:行者123 更新时间:2023-12-03 14:39:48 25 4
gpt4 key购买 nike

我直接使用 Gmail RESTful API(不是来自某个库)。
查看此处的文档 Gmail Documentation .

我设法获取了消息正文的内容,但是它也返回了当前消息的整个历史链。

有没有办法只从 API 获取请求的消息体的响应,而没有整个线程历史记录?

最佳答案

根据这个thread ,这是不可能的,因为它是电子邮件正文内容的一部分,并且您正在指定要检索的消息的 ID。

You are getting the full reply message. When the report replied, they quoted the original message and this the text of the original is in the reply message. You may just want to do what Gmail and many other modern emails apps do and collapse/hide any reply text which begins with >.



引用:
  • How to get the reply message without the original message from the Gmail API
  • GMAIL API : How to get the reply without the original message
  • Most efficient way to get new messages
  • 关于google-api - 从 Gmail API 获取没有历史记录的邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42298961/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com