Skip to main content

Module dsn

Module dsn 

Source
Expand description

Delivery Status Notification (RFC 3464) formatting. RFC 3464 Delivery Status Notification (DSN) builder.

Wraps mailrs-mail-builder’s canonical MessageBuilder so the multipart/report envelope, header folding, encoded-word handling, and boundary collision-scan are all shared with the rest of the outbound stack. The DSN-specific message/delivery- status machine-readable part is constructed inline (RFC 3464 §2 grammar — pure ASCII key/value pairs).

Functions§

format_dsn
Format a DSN (Delivery Status Notification) bounce message per RFC 3464. The returned message uses CRLF line endings (RFC 5322 §2.1) and multipart/report; report-type=delivery-status.