Expand description
Email allow/block list normalization and matching helpers. Email allow/block list normalization and matching helpers.
Product crates still decide which configuration keys contain allowlists or blocklists, which API error codes to return, and whether an empty allowlist means “allow everyone” or “deny everyone”. This module only owns the shared mechanics for parsing policy entries, normalizing them, deduplicating them in a stable order, and testing exact email/domain matches.
Structs§
- Email
Policy List - Normalized email policy list split into exact email and exact domain sets.
Enums§
- Email
Policy Entry - Normalized policy entry classified as either an exact email or an exact domain.
Functions§
- normalize_
email_ policy_ domain - Normalizes an exact email domain policy entry.
- normalize_
email_ policy_ email - Normalizes an exact email policy entry.
- normalize_
email_ policy_ items - Normalizes and deduplicates raw email policy entries into a stable vector.
- normalized_
email_ and_ domain - Normalizes an email and returns its exact-match domain.
- parse_
email_ policy_ item - Parses one raw policy entry.