Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
Content represents the body content of an SMTP message
func ContentFromString ¶
ContentFromString parses SMTP content into separate headers and body
func (*Content) ParseMIMEBody ¶
ParseMIMEBody parses SMTP message content into multiple MIME parts
type MIMEBody ¶
type MIMEBody struct {
Parts []*Content
}
MIMEBody represents a collection of MIME parts
type Message ¶
type Message struct { ID MessageID From *Path To []*Path Content *Content Created time.Time MIME *MIMEBody // FIXME refactor to use Content.MIME Raw *SMTPMessage }
Message represents a parsed SMTP message
type MessageID ¶
type MessageID string
MessageID represents the ID of an SMTP message including the hostname part
func NewMessageID ¶
NewMessageID generates a new message ID
type Messages ¶
type Messages []Message
Messages represents an array of Messages - TODO is this even required?
type Path ¶
Path represents an SMTP forward-path or return-path
func PathFromString ¶
PathFromString parses a forward-path or reverse-path into its parts
Click to show internal directories.
Click to hide internal directories.