Categorygithub.com/mailhog/data
modulepackage
1.0.2-rc1
Repository: https://github.com/mailhog/data.git
Documentation: pkg.go.dev

# README

MailHog data library GoDoc Build Status

github.com/mailhog/data implements a data library

Licence

Copyright ©‎ 2014-2015, Ian Kent (http://iankent.uk)

Released under MIT license, see LICENSE for details.

# Functions

ContentFromString parses SMTP content into separate headers and body.
FromBytes returns a SMTPMessage from raw message bytes (as output by SMTPMessage.Bytes()).
NewMessageID generates a new message ID.
PathFromString parses a forward-path or reverse-path into its parts.

# Variables

LogHandler is called for each log message.

# Structs

Content represents the body content of an SMTP message.
Message represents a parsed SMTP message.
MIMEBody represents a collection of MIME parts.
Path represents an SMTP forward-path or return-path.
SMTPMessage represents a raw SMTP message.

# Type aliases

MessageID represents the ID of an SMTP message including the hostname part.
Messages represents an array of Messages - TODO is this even required?.