EmailParser.Email (EmailParser v0.1.0)

Copy Markdown View Source

A message with its attachments stripped: the header fields plus the bodies.

text_body is always plain text — a message that carries only HTML is rendered to text. html_body is only set when the message actually carries an HTML part.

Summary

Types

t()

@type t() :: %EmailParser.Email{
  headers: %{required(String.t()) => String.t()},
  html_body: String.t() | nil,
  text_body: String.t() | nil
}