Node.js port of Github's email_reply_parser