RungerEmailReplyTrimmer is a small library to trim replies from plain text email.
To trim replies:
trimmed_body = RungerEmailReplyTrimmer.trim(email_body)
List the gem in your Gemfile
:
gem 'runger_email_reply_trimmer'
It was forked from https://github.com/discourse/email_reply_trimmer.