收到电子邮件,没有回覆的历史记录

编程入门 行业动态 更新时间:2024-10-23 11:20:11
本文介绍了收到电子邮件,没有回覆的历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我遇到gmail api的问题,

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

十,肯定。照片是伟大的以及服务! 从我的iPad发送 2017年7月17日上午11:32,Steve< test@test>写道: 嗨帕蒂! 如果您可以花费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> 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.

更多推荐

收到电子邮件,没有回覆的历史记录

本文发布于:2023-10-28 01:03:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1535038.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:回覆   历史记录   电子邮件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!