mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 06:47:41 -05:00
* fix(ses): check a v2 raw From header only in place of a missing sender A v2 SendEmail with Content.Raw reads the MIME From header only when FromEmailAddress is omitted. AWS then answers "Invalid From address provided." for an empty domain or a non-ASCII local part or domain, and keeps "Missing final '@domain'" for a missing @. With FromEmailAddress given, the header is not checked at all. v1 SendRawEmail is unchanged. * fix(ses): skip the v2 raw From header length check when a sender is given A v2 SendEmail with Content.Raw and FromEmailAddress ignores the From header's 320-character limit as well as its syntax. The From-header decision now uses the sender-omitted flag SendRawEmail already computes, and the v2 wording keys on the kind of syntax violation, not its message. * refactor(ses): read a raw send's sender presence from the request SendEmailRequest gains hasSource(), alongside hasRecipients(), so sendRawEmail and the raw From-header checks no longer pass a sender-omitted flag around. * fix(ses): report a v2 raw From header's missing @ after the destination check AWS reports a missing @ in a v2 raw From header, read in place of FromEmailAddress, only after the configuration set and the missing-destination checks and before the length check, so a message with no recipient anywhere gets "Missing required header 'To'." The missing-destination check now precedes the length check on both APIs. * refactor(ses): compare the missing @ by its message constant The v2 raw From-header checks only need to tell a missing @ from the other violations, which the message constant already does, so the violation enum goes and violation() returns its messages directly again. * fix(ses): resolve a raw sender's default configuration set before the destination check A raw send whose sender comes from the MIME From header re-resolves the identity's default configuration set; that check now runs before the missing-destination check again, so a deleted default is still reported instead of "Missing required header 'To'." * test(ses): pin the unknown configuration set ahead of a raw send's missing destination * test(ses): save the stale-default identity through the identity service