Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hellogustav/elixir_email_reply_parser
An Elixir port of https://github.com/github/email_reply_parser as well as (especially) its port of https://github.com/zapier/email-reply-parser
https://github.com/hellogustav/elixir_email_reply_parser
elixir elixir-library elixir-programming-language email email-body-parsing email-parsing email-reply-parsing email-text-parsing
Last synced: about 1 month ago
JSON representation
An Elixir port of https://github.com/github/email_reply_parser as well as (especially) its port of https://github.com/zapier/email-reply-parser
- Host: GitHub
- URL: https://github.com/hellogustav/elixir_email_reply_parser
- Owner: hellogustav
- License: mit
- Created: 2017-03-21T13:10:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T22:07:33.000Z (about 7 years ago)
- Last Synced: 2024-10-29T08:40:04.151Z (2 months ago)
- Topics: elixir, elixir-library, elixir-programming-language, email, email-body-parsing, email-parsing, email-reply-parsing, email-text-parsing
- Language: Elixir
- Homepage:
- Size: 74.2 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Elixir Email Reply Parser
[![Build Status](https://travis-ci.org/hellogustav/elixir_email_reply_parser.svg?branch=master)](https://travis-ci.org/hellogustav/elixir_email_reply_parser)
For retrieval of the last reply from email message text (body).
Originally an Elixir port of [https://github.com/github/email_reply_parser](https://github.com/github/email_reply_parser)
as well as (especially) its port of [https://github.com/zapier/email-reply-parser](https://github.com/zapier/email-reply-parser)
enhanced by e.g. ability to handle emails generated by email clients with German localization.## Installation
The package can be installed by adding `elixir_email_reply_parser` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:elixir_email_reply_parser, "~> 0.1.2"}]
end
```## Usage
```elixir
iex> email_content = "Hi!\n\n How are you?\n__________\nFrom: Some Author\n\n Previous email"
iex> ElixirEmailReplyParser.parse_reply(email_content)
"Hi!\n\n How are you?"
```## Links
Source code can be found at [https://github.com/hellogustav/elixir_email_reply_parser](https://github.com/hellogustav/elixir_email_reply_parser)
Package info can be found at [https://hex.pm/packages/elixir_email_reply_parser](https://hex.pm/packages/elixir_email_reply_parser)
Published version of the docs can be found at [https://hexdocs.pm/elixir_email_reply_parser](https://hexdocs.pm/elixir_email_reply_parser).
Licensed under the [MIT license](https://github.com/hellogustav/elixir_email_reply_parser/blob/master/LICENSE.md)