Elixir Email Reply Parser v0.1.2 ElixirEmailReplyParser View Source

Main ElixirEmailReplyParser module

Link to this section Summary

Functions

Extracts reply from provided email body string

Link to this section Functions

Link to this function parse_reply(text) View Source
parse_reply(String.t()) :: String.t()

Extracts reply from provided email body string

Parameters

  • text: Email body content as a string

Examples

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?"