mail v0.0.4 Mail.Renderers.RFC2822

RFC2822 Parser

Will attempt to render a valid RFC2822 message from a %Mail.Message{} data model.

Mail.Renderers.RFC2822.render(message)

Summary

Functions

Renders a message according to the RFC2882 spec

Will render a given header according to the RFC2882 spec

Will render all headers according to the RFC2882 spec

Builds a RFC2822 timestamp from an Erlang timestamp

Functions

render(message)

Renders a message according to the RFC2882 spec

render_header(key, value)

Will render a given header according to the RFC2882 spec

render_headers(headers, blacklist \\ [])

Will render all headers according to the RFC2882 spec

Can take an optional list of headers to blacklist

render_part(message, render_part_function \\ &render_part/1)

Render an individual part

An optional function can be passed used during the rendering of each individual part

render_parts(parts, fun \\ &render_part/1)
timestamp_from_erl(arg)

Builds a RFC2822 timestamp from an Erlang timestamp

RFC2822 3.3 - Date and Time Specification

This function always assumes the Erlang timestamp is in Universal time, not Local time