Skip to main content

Crate smtp_test_tool

Crate smtp_test_tool 

Source
Expand description

email-tester core library.

Pure-Rust, single-binary mail-server diagnostic. Used by both the CLI (bin/cli.rs) and the GUI (bin/gui.rs).

All protocol tests emit progress through tracing events with a protocol field ("smtp", "imap", or "pop3") so any subscriber (terminal formatter, GUI log widget, file writer) can route them.

Re-exports§

pub use config::Config;
pub use config::Profile;
pub use runner::run_tests;
pub use runner::TestOutcome;
pub use runner::TestResults;

Modules§

config
TOML config file with named profiles. Auto-load order:
diagnostics
Translates raw server replies into human-readable, IT-actionable hints.
i18n
Hand-rolled translation lookup.
imap
Minimal hand-rolled IMAP client - just enough for connectivity diagnostics (CAPABILITY, STARTTLS, LOGIN, LIST, SELECT, LOGOUT).
keystore
OS-native credential storage abstraction.
locale
OS-level locale detection.
pop3
Minimal hand-rolled POP3 client - USER/PASS, CAPA, STAT, STLS, QUIT.
providers
Built-in mail-provider presets.
runner
High-level orchestrator: run whichever of SMTP / IMAP / POP3 are enabled.
smtp
SMTP connectivity test using lettre.
theme
Cross-platform OS appearance (dark/light) detection.
tls
TLS configuration helpers built on rustls.

Functions§

outlook_defaults
Built-in Outlook.com / Office 365 defaults.