收到电子邮件,没有回覆的历史记录 [英] getting an email without the history in case of reply

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

问题描述

我遇到gmail api的问题,



当我使用get方法通过id获取电子邮件内容时,如果回复电子邮件,我可以不正确地隔离用户响应。

例如,这里是他身上的电子邮件,

 十,肯定。照片是伟大的以及服务! 

从我的iPad发送

2017年7月17日上午11:32,Steve< test@test.com>写道:

嗨帕蒂!

如果您可以花费10秒钟的时间来评估您与Walgreens的体验,真的会帮助我们从0-10以下的

012345678910
不满意满意
谢谢你花时间让我们知道你的想法。我们将使用这些信息来帮助改善我们的服务!

有一个美好的一天!

Steve

我想隔离客户回应:十可以肯定的是,照片很棒,服务也很好!



但是,当我收到我的电子邮件时,似乎是不可能的。

也许我可以用线程做某事?

解决方案

Gmail API不解析电子邮件内容 - 整理回复,引用电子邮件,原始电子邮件等完全取决于你。



鉴于不同的电子邮件客户端可能格式化答复和报价不同,没有通用的方式来做你想要的。


$ b $你最好的打赌可能是启发式的:例如,从我的iPhone / iPad发送是一个很好的提示,答复已经结束。同样,Gmail似乎在HTML回复有效载荷中放置一些div类,提供回复文字和引用文本的提示。


I'm facing a problem with the gmail api,

When I get an email content with the get method by id, in case of replying email, I can't isolate the user response correctly.
for example, here is he body of the email,

A ten, for sure. Photos are great as well as the service! 

Sent from my iPad

On Jul 17, 2017, at 11:32 AM, Steve <test@test.com> wrote:

Hi Patty! 

It would really help us if you could take 10 seconds of your time to rate your experience with Walgreens Photo Print from 0-10 below

012345678910
unsatisfied very satisfied
Thank you for taking the time to let us know what you think. We will use this information to help improve our service!

Have a great day! 

Steve

I would like to isolate the customer response : "A ten, for sure. Photos are great as well as the service!"

But, when I get the body of my email, It seems to be impossible.
Maybe I can do something with threads ?

解决方案

The Gmail API does not parse the email contents -- sorting out the reply, the quoted email, the original email, etc. is all up to you.

And given that different email clients may format the reply and quote differently, there's no universal way to do what you want.

Your best bet may be heuristics: for example, "Sent from my iPhone/iPad" is a good hint that the reply has ended. Similarly, Gmail seems to put some div classes in the HTML reply payload that give hints to the reply text and the quoted text.

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

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