Repository navigation
v0.1.1
·
9 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Behaviour changes
- Header validation in every mailer.
wrapsMailer,sesMailer,emailSdkMailerandmemoryMailernow throw aPermanentMailErrorbefore 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; withemailSdkMailer, non-ASCII header values that some providers used to accept now fail. testMailerhas 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.wrapsMailerno longer throws after SES accepted a send without an id. It returns{ id: "ses:<uuid>" }withoutmessageId, likesesMailer, so the caller doesn't retry and send twice.messageIdis left out when an endpoint comes from the environment:AWS_ENDPOINT_URL,AWS_ENDPOINT_URL_SESorAWS_ENDPOINT_URL_SESV2forwrapsMailer;AWS_ENDPOINT_URLorAWS_ENDPOINT_URL_SESV2forsesMailer(LocalStack setups no longer get a made-up SES Message-ID).fromdisplay 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.
Full Changelog: v0.1.0...v0.1.1