Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Translates raw server replies into human-readable, IT-actionable hints.

As of v0.1.3 the actual strings live in locales/<code>.toml and are looked up via the crate::i18n module. This file is now the router — it knows which keys exist and which substrings to match — but says nothing in any particular language. Translators add a new locale by adding a TOML file under locales/; no Rust change is needed unless we want to add a whole new diagnostic code.

Functions§

imap_hints_for
pop_hints_for
smtp_hints_for
Given any SMTP error message, return matched enhanced-status hints plus any client-side bounce-body hints.