Get the actual email message that the person just wrote, excluding any quoted text

后端 未结 6 1213
我寻月下人不归
我寻月下人不归 2020-12-23 17:34

There are two pre-existing questions on the site. One for Python, one for Java.

  • Java How to remove the quoted text from an email and only show the new text
6条回答
  •  温柔的废话
    2020-12-23 17:58

    Afaik, (standard) emails should quote the whole text by adding a ">" in front of every line. Which you could strip by using strstr(). Otherwise, did you trie to port that Java example to php? It's nothing else than Regex.

    Even pages like Github and Facebook do have this problem.

提交回复
热议问题