Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderEntry ¶
func NewHeaderEntry ¶
func NewHeaderEntry(fieldName, value string) (HeaderEntry, error)
NewHeaderEntry generates a new HeaderEntry after format validation
Validation is based on RFC-5322: https://tools.ietf.org/html/rfc5322
fieldName - The name of the field (like Date/From/Subject) value - The value for the field (use commas to signal multiple values)
type Message ¶
func ReadMessage ¶
ReadMessage reads the message and returns the Message value
func (*Message) AppendHeader ¶
func (m *Message) AppendHeader(entry HeaderEntry) error
AppendHeader adds the new entry to the message header
Click to show internal directories.
Click to hide internal directories.