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

查看:69
本文介绍了从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?

推荐答案

根据此

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

参考:

  • 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

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

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