开发者

How to parse a message to only extract the body, every time?

开发者 https://www.devze.com 2023-02-17 04:03 出处:网络
I\'m coding an email piping and I\'m getting the message and everything but I\'m struggling when it comes to extracting the new user reply and add it to the ticket log.

I'm coding an email piping and I'm getting the message and everything but I'm struggling when it comes to extracting the new user reply and add it to the ticket log.

Some email clients add something like "On 2011-03-14, at 6:00 AM, Stack Overflow wrote:" before older messages other don开发者_如何转开发't... I'm completely lost.

Please help.


The text "on xxx, foo wrote" is part of the email text because the author's included that automatically and the author did not delete it. So you apparently did everything right :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号