mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
* feat(ses): scan raw sends for the EICAR test file and keep it out of the mailbox store The content scan now covers raw sends: the wire bytes are searched for the plain and the base64-encoded signature before parsing, so a message the lenient MIME parser cannot walk is still caught, and the parsed message is walked part by part, decoding attachments, descending into forwarded messages and decoding RFC 2047 header words. A candidate found on the wire is confirmed by decoding the run around it, so a base64 near-miss of the signature is not rejected. A rejected record keeps only its source, its envelope and RejectReason; subject, headers, reply-to addresses, bodies and raw data are dropped, and the inspection endpoint lists it in neither the Simple nor the raw shape, so the signature never reaches the mailbox store on disk. A MIME parse failure logs the exception class only, since the message text could echo content. * test(ses): pin that a rejected raw send publishes no parsed subject The raw rejection test checked the header block and the recipient lists but read commonHeaders only for the recipients, so a subject leaking back into the event would have gone unnoticed.