Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct { MessageId string `json:"messageId"` Date time.Time `json:"date"` From string `json:"from"` To []string `json:"to"` Cc []string `json:"cc"` Bcc []string `json:"bcc"` Subject string `json:"subject"` Body string `json:"body"` IsRead bool `json:"isRead"` IsStarred bool `json:"isStarred"` }
Email represents an email message that can be JSON encoded.
func EmailFromFile ¶
EmailFromFile parses an email file located at path to an Email struct for easy JSON encoding.
Click to show internal directories.
Click to hide internal directories.