mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
* feat(ses): support Content.Simple.Attachments in SESv2 SendEmail Parse and validate Simple attachments, assemble them into one MIME message with the relay's encoder, run the content scan over it as for raw sends, relay them over SMTP, and expose them in the /_aws/ses mailbox as an Attachments summary plus the base64 MIME message in RawData. * fix(ses): sort SesService imports and document attachment encoding and RawData recipients RawData keeps the To and Cc recipients the request named, including any suppression later kept from delivery, and ContentTransferEncoding is validated but every attachment part is base64-encoded. Both are now stated in the SES docs. * fix(ses): reject line breaks in attachment MIME header members ContentType, ContentDescription and ContentId are written verbatim into the attachment part's MIME headers, so a CR or LF in any of them added header lines to that part. They are now refused with BadRequestException by the same rule MessageHeader.isSafe applies to custom headers. missingHeaderMember now builds its message through constraintViolation. * fix(ses): refuse attachments with unsupported file extensions SES does not accept attachments whose file names end in one of the extensions listed under "SES unsupported attachment types" in the developer guide. The content scan now walks the parsed MIME for attachment file names, from Content-Disposition or the Content-Type name parameter, and both the Simple-with-attachments and raw send paths refuse such a message with MessageRejected before anything is recorded. * refactor(ses): share one MIME part walk between the content scans hasBlockedAttachment repeated the worklist entityContains already used. Both now go through anyPart, which walks every part, forwarded messages and multiparts included, and runs the given check on each.