https://github.com/discourse/email_reply_trimmer
Library to trim replies from plain text email.
https://github.com/discourse/email_reply_trimmer
rubygem
Last synced: 3 months ago
JSON representation
Library to trim replies from plain text email.
- Host: GitHub
- URL: https://github.com/discourse/email_reply_trimmer
- Owner: discourse
- License: mit
- Created: 2016-01-29T19:06:42.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T18:33:01.000Z (almost 2 years ago)
- Last Synced: 2024-05-09T09:26:25.962Z (about 1 year ago)
- Topics: rubygem
- Language: Ruby
- Homepage:
- Size: 90.8 KB
- Stars: 57
- Watchers: 24
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discourse Email Reply Trimmer
EmailReplyTrimmer is a small library to trim replies from plain text email.
## Usage
To trim replies:
`trimmed_body = EmailReplyTrimmer.trim(email_body)`
## Installation
Get it from [GitHub](https://github.com/discourse/email_reply_trimmer).
Run `rake` to run the tests.
## Inspirations
- [GitHub's Email Reply Parser](https://github.com/github/email_reply_parser)
- [MailGun's Talon](https://github.com/mailgun/talon)
- [Vitor R. Carvalho's Learning to Extract Signature and Reply Lines from Email](http://www.cs.cmu.edu/~vitor/papers/sigFilePaper_finalversion.pdf)