Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Message Without History From Gmail API

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.

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

like image 995
D. Gencheva Avatar asked Feb 17 '17 13:02

D. Gencheva


1 Answers

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.

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

References:

  • 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
like image 121
abielita Avatar answered Oct 17 '22 14:10

abielita