Expand description
Product-neutral mail runtime configuration normalization.
Product crates still own the concrete configuration keys, default values, runtime config reading, and API error mapping. This module keeps recurring validation and normalization rules for mail-related config values, plus the product-neutral runtime settings model used by shared sender implementations.
Structs§
- Mail
Config Error - Error returned when mail configuration normalization fails.
- Mail
Runtime Settings - Runtime SMTP settings shared by Aster service mail senders.
Constants§
- DEFAULT_
MAIL_ SECURITY - Default SMTP encryption policy used by Aster services when runtime config is absent.
- DEFAULT_
MAIL_ SMTP_ PORT - Default SMTP port used by Aster services when runtime config is absent.
- MAIL_
TEMPLATE_ MAX_ BODY_ LEN - Maximum HTML body length accepted by the shared mail template normalizer.
- MAIL_
TEMPLATE_ MAX_ SUBJECT_ LEN - Maximum subject length accepted by the shared mail template normalizer.
Functions§
- normalize_
mail_ address_ config_ value - Normalizes a sender email address value.
- normalize_
mail_ name_ config_ value - Normalizes a sender display name value.
- normalize_
mail_ security_ config_ value - Normalizes a bool-like mail security config value.
- normalize_
mail_ template_ body_ config_ value - Normalizes a mail template HTML body.
- normalize_
mail_ template_ subject_ config_ value - Normalizes a mail template subject.
- normalize_
smtp_ host_ config_ value - Normalizes an SMTP host value.
- normalize_
smtp_ port_ config_ value - Normalizes an SMTP port value.
- parse_
smtp_ port - Parses an SMTP port from a storage string.
Type Aliases§
- Mail
Config Result - Result type returned by shared mail configuration helpers.