Added
- CLI utils now output inlines and other parts in addition to attachments.
- Clone() method to Envelope and Part (thanks to nerdlich.)
- GetHeaderKeys() method to Envelope (thanks to allenluce.)
- GetHeaderValues() plus a suite of setters for Envelope (thanks to nerdlich.)
Changed
- Use value instead of pointer receivers and return types on MailBuilder
methods. Cleaner API, but may break some users. enmime.Error
now conforms to the Go error interface, itsString()
method
is now deprecated.NewPart()
constructor no longer takes a parent parameter.- Part.Errors now holds pointers, matching Envelope.Errors.
Fixed
- Content is now populated for binary-only mails root part (thank to ostcar.)
Removed
- Part no longer implements
io.Reader
, content is stored as a byte slice in
Part.Content
instead.