.NET library for processing HTML e-mail messages and removing previous responses

Does anyone know a .NET library that processes HTML email messages and can be used to trim response chains? It should be able to receive HTML or text letters, and then crop everything except the actual response, removing the trace of messages that are not original content. I do not expect him to be able to process replies if they alternate in the previous mail ("replies in line") - this case may fail.

We have a built-in based on SgmlReader and a number of XSL transforms, but it requires constant maintenance to work with new mail clients. I would like to find one that I can buy ... :)

Thanks Steve

+4
source share
2 answers

This does not answer many of your questions, but W3C Converting HTML to Other Formats contains a section on converting HTML to text. Hope this helps someone develop a complete answer to your question!

+1
source

One free and very useful library we used to work with HTML, including garbled HTML, is HtmlAgilityPack .

There is no StripOutPreviousResponses () function, but it can help you with your homemade one.

+1
source

Source: https://habr.com/ru/post/1276826/


All Articles