.net port of https://github.com/github/email_reply_parser