File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/hellogustav/elixir_email_reply_parser.svg?branch=master )] ( https://travis-ci.org/hellogustav/elixir_email_reply_parser )
4
4
5
- An Elixir port of https://github.com/github/email_reply_parser
5
+ Originally an Elixir port of https://github.com/github/email_reply_parser
6
6
as well as (especially) its port of https://github.com/zapier/email-reply-parser
7
7
8
+ For retrieval of the last reply from email message text (body).
9
+
8
10
## Installation
9
11
10
- If [ available in Hex] ( https://hex.pm/docs/publish ) , the package can be installed
11
- by adding ` elixir_email_reply_parser ` to your list of dependencies in ` mix.exs ` :
12
+ The package can be installed by adding ` elixir_email_reply_parser ` to your list of dependencies in ` mix.exs ` :
12
13
13
14
``` elixir
14
15
def deps do
15
16
[{:elixir_email_reply_parser , " ~> 0.1.0" }]
16
17
end
17
18
```
18
19
19
- Documentation can be generated with [ ExDoc] ( https://github.com/elixir-lang/ex_doc )
20
- and published on [ HexDocs] ( https://hexdocs.pm ) . Once published, the docs can
21
- be found at [ https://hexdocs.pm/elixir_email_reply_parser ] ( https://hexdocs.pm/elixir_email_reply_parser ) .
20
+ Published version of the docs can be found at [ https://hexdocs.pm/elixir_email_reply_parser ] ( https://hexdocs.pm/elixir_email_reply_parser ) .
21
+
22
+ ## Usage
23
+
24
+ ``` elixir
25
+ iex> email_content = " Hi!\n\n How are you?\n __________\n From: Some Author\n\n Previous email"
26
+ iex> ElixirEmailReplyParser .parse_reply (email_content)
27
+ " Hi!\n\n How are you?"
28
+ ```
You can’t perform that action at this time.
0 commit comments