mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(ses): publish a Bounce for suppressionlist@simulator and split events by cause suppressionlist@simulator.amazonses.com published a Reject event. Real SES publishes a hard Bounce for it: bounceType Permanent, bounceSubType General, and a diagnostic that names the suppression. Reject is the outcome of the content scan, which the simulator has no address for. Verified against SES in us-east-1 on 2026-09-21 through an SNS event destination. The same probe confirmed that a recipient on the account-level suppression list bounces with bounceSubType OnAccountSuppressionList, or is complained about with complaintSubType OnAccountSuppressionList, and that SES publishes one event per cause: a message reaching both bounce@simulator and a suppressed address produces two Bounce events, each listing only its own recipients. Floci merged them into one General bounce. One classifier, SesRecipientEvents, now decides the events a send produces per recipient, and the publisher and identity notifications consume its output, so the simulator and suppression semantics have a single home. complaint@simulator now publishes Delivery before Complaint, as the simulator documents, a list-management opt-out bounces under its own cause, every bounce and complaint block carries its own feedbackId, and complaints carry arrivalDate. Reject stays reachable the way AWS documents it: a Simple send carrying the EICAR test file in its subject, a header or a text body is accepted and then rejected with reason "Bad content" and not relayed. The signature is assembled from fragments at runtime and never appears in source. Scanning raw MIME and keeping the signature out of the mailbox store follow separately. * fix(ses): drop the content of a rejected record A send the content scan rejected was still recorded in full, so its subject, body and headers reached the sent-email store, the inspection endpoint and, with persistence on, the disk. The record now keeps only its source, its envelope and RejectReason, and the inspection endpoint shows the reason. * fix(ses): keep the scanned content out of a rejected message's events The Send and Reject events of a rejected message carried the subject and the additional headers in their mail block, so with headers enabled a subject carrying the test string reached every event destination and, with persistence on, the disk. Both events now carry the envelope but no subject and no headers, a small deviation from SES that keeps the string off disk entirely; the docs say so.