「チケット」に返信する人が gmail などのメール クライアントを使用している@message.body.decoded
場合、入力したテキストではなく会話スレッド全体が表示されます。
テキストのその部分だけを抽出する方法はありますか?
「チケット」に返信する人が gmail などのメール クライアントを使用している@message.body.decoded
場合、入力したテキストではなく会話スレッド全体が表示されます。
テキストのその部分だけを抽出する方法はありますか?
通常、既存の返信は、前に>
. 1 つのオプションは、その文字で始まらない行を抽出することです。
そのため、メールをプレーンテキストとして見て、それを抽出できます。次に例を示します。
--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