Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 19:15
· 9 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.1.1
3fc9912

Behaviour changes

  • Header validation in every mailer. wrapsMailer, sesMailer, emailSdkMailer and memoryMailer now throw a PermanentMailError before sending when a header name isn't printable ASCII without : or a value contains CR, LF, another control character or a non-ASCII character (RFC 2047-encode those first). SES already refused these, just later; with emailSdkMailer, non-ASCII header values that some providers used to accept now fail.
  • testMailer has 9 new cases for header names and line-break/control characters in values. A custom adapter that passed 0.1.0's suite may need to validate headers too.
  • wrapsMailer no longer throws after SES accepted a send without an id. It returns { id: "ses:<uuid>" } without messageId, like sesMailer, so the caller doesn't retry and send twice.
  • messageId is left out when an endpoint comes from the environment: AWS_ENDPOINT_URL, AWS_ENDPOINT_URL_SES or AWS_ENDPOINT_URL_SESV2 for wrapsMailer; AWS_ENDPOINT_URL or AWS_ENDPOINT_URL_SESV2 for sesMailer (LocalStack setups no longer get a made-up SES Message-ID).
  • from display names on the wire: non-ASCII names are sent as RFC 2047 encoded-words and ASCII names that need it are quoted. Names already encoded, or written as a phrase, go out unchanged.

Also: sesMailer's messageId and In-Reply-To/References are confirmed with a real SES v2 send in us-east-1; README notes on email-sdk telemetry and when to use sesMailer.

Fixes #1, #2, #3, #4, #5, #6.

Full Changelog: v0.1.0...v0.1.1