Releases: jhillyerd/enmime
Releases · jhillyerd/enmime
v0.7.0
Added
- Public DecodeHeaders function for getting header data without processing the
body parts (thanks requaos.) - Test coverage over 90% (thanks requaos!)
Changed
- Update dependencies
Fixed
v0.6.0
v0.5.0
Added
- Use github.com/pkg/errors to decorate errors with stack traces (thanks to
dcomier.) - Several improvements to Content-Type header decoding (thanks to dcormier.)
- File modification date to encode/decode (thanks to dann7387.)
- Handle non-delimited address lists (thanks to requaos.)
- RFC-2047 attribute name deocding (thanks to requaos.)
Fixed
- Only detect charset on
text/*
parts (thanks to dcormier.) - Stop adding extra newline during encode (thanks to dann7387.)
- Math bug in selecting QP or base64 encoding (thanks to dann7387.)
v0.4.0
Added
- Override declared character set if another is detected with high confidence
(thanks to nerdlich.) - Handle unquoted specials in media type parameters (thanks to requaos.)
- Handle barren Content-Type headers (thanks to dcormier.)
- Better handle malformed media type parameters (thanks to dcormier.)
Changed
- Use iso-8859-1 character map when implicitly declared (thanks to requaos.)
- Treat "inline" disposition as message content, not attachment unless it is
accompanied by parameters (e.g. a filename, thanks to requaos.)
v0.3.0
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.