Skip to content

Releases: jhillyerd/enmime

v0.7.0

24 Nov 19:26
Compare
Choose a tag to compare

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

  • Do not attempt to detect character set for short messages (#131, thanks
    requaos.)
  • Possible slice out of bounds error (#134, thanks requaos.)
  • Tests on Go 1.13 no longer fail due to textproto change (#137, thanks to
    requaos.)

v0.6.0

11 Aug 16:25
Compare
Choose a tag to compare

Added

  • Make ParseMediaType public.

Fixed

  • Improve quoted display name handling (#112, thanks to requaos.)
  • Refactor MIME part boundary detection (thanks to requaos.)
  • Several improvements to MIME attribute decoding (thanks to requaos.)
  • Detect text/plain attachments properly (thanks to davrux.)

v0.5.0

16 Dec 00:10
Compare
Choose a tag to compare

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

22 Nov 05:32
Compare
Choose a tag to compare

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

01 Nov 20:12
Compare
Choose a tag to compare

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, its String() 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.