从 Gmail API 获取没有历史记录的邮件 [英] Get Message Without History From Gmail API

查看:20
本文介绍了从 Gmail API 获取没有历史记录的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm using the Gmail RESTful API directly (not from some library). Looking at the documentation here Gmail Documentation.

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

I have managed to get the content of the message body, however it also returns the whole history chain for the current message.

有没有办法只从 API 获得请求的消息体的响应,而不需要整个线程历史?

Is there a way to get a response from the API only the requested message body, without the whole thread history?

推荐答案

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

According to this thread, it is not possible because it is part of the email's body content and you're specifying the ID of the message to retrieve.

您将收到完整的回复消息.当报告回复时,他们引用了原始消息,原始文本在回复消息中.您可能只想做 Gmail 和许多其他现代电子邮件应用程序所做的事情,并折叠/隐藏以 > 开头的任何回复文本.

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 >.

参考文献:

这篇关于从 Gmail API 获取没有历史记录的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆