mail-in

Parses raw RFC 5322 mail, reads trusted Authentication-Results, checks sender alignment and routes inbound address tokens.

Built and tested in the harness, and not in the public repository yet. The install line and the source link appear here when it is.

What it is

mail-in.

Parses raw RFC 5322 mail and makes the trust decisions around it. parse_raw returns bodies, attachments and hashes under size and MIME-shape limits. trusted_auth_results reads only the Authentication-Results headers from the configured authserv-id, and aligned checks a sender domain fail-closed, without a Public Suffix List. route_token accepts only the strict c- token address rule, and message_key derives a dedup key from the Message-ID. It also defines the HMAC-signed IngestCall that the Cloudflare Email Routing shim posts to ingest. Each function is pure, and the crate builds for wasm32.

From the crate’s own README.

History

Changelog.

Not released yet. Its changelog starts with its first release.

One of 95 crates in the harness, all of them MIT.