Documentation
¶
Overview ¶
Package mbox reads mailboxes in the mbox format, such as Eudora's .mbx files, and Thunderbird's and Unix mail's mailboxes, which are messages, each after a line which starts with From, the sender, and the date it was received, a message at a time
Index ¶
Constants ¶
const ( // ContentType is the content type of a mailbox ContentType = "application/mbox" // MaxMessageSize is the most of a message which is read MaxMessageSize = 32 << 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// The sender of the message, from its From line, which is empty when it
// isn't known, as Eudora writes it, ???@???
Sender string
// When the message was received, from its From line, in UTC, as the
// time zone isn't known
Date time.Time
// The message, with line feeds, and the lines which start with From,
// which are escaped as >From, as they are. A message which is longer
// than MaxMessageSize is cut short.
Data []byte
}
Message is a message in a mailbox