Elixir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.gitignore
.travis.yml
LICENSE.md
README.md
mix.exs
mix.lock

README.md

Elixir Email Reply Parser

Build Status

For retrieval of the last reply from email message text (body).

Originally 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 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:

def deps do
  [{:elixir_email_reply_parser, "~> 0.1.2"}]
end

Usage

    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

Package info can be found at https://hex.pm/packages/elixir_email_reply_parser

Published version of the docs can be found at https://hexdocs.pm/elixir_email_reply_parser.

Licensed under the MIT license