Skip to main content

Module canonical

Module canonical 

Source
Expand description

Canonical email keys for binding and verification lookups.

Canonicalization splits on the final at sign, lowercases both components, and expands the German sharp s. It does not otherwise normalize mailbox or domain syntax.

Constants§

MAX_EMAIL_LEN 🔒
Upper bound on an email address length, applied before canonicalization so a pathological input cannot drive unbounded work.

Functions§

canonicalize_email
Canonicalizes an email address for storage and matching.
case_fold 🔒
Applies the service’s per-character email case fold.