2

如果回复“票证”的人正在使用诸如 gmail 之类的邮件客户端,那么当我这样做时,该回复将显示整个对话线程,@message.body.decoded而不是他们输入的文本。

有没有办法只提取那部分文本?

4

1 回答 1

2

通常,现有回复使用前面的>. 一种选择是提取不以该字符开头的行。

因此,您将电子邮件视为纯文本,您可以将其提取出来。这是一个例子:

--f46d0basically0a0unique0id # Marks the start of content for this email
Content-Type: text/plain; charset=ISO-8859-1

Hello foo,

This is a message.

Regards,
Bar

>
> Original response
> is quoted like this
> What in included here 
> depends on mail client
>


--f46d0basically0a0unique0id # Marks the end of content for this email
于 2012-02-17T15:10:35.050 回答