This repository has been archived on 2023-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
rust-opensmtpd/examples/dummy.rs
Rodolphe Breard 98e4beadd3 Use a builder instead of a raw function
This pattern will, in the future, allow the registration of events
handlers and context objects.
2019-01-03 20:16:23 +01:00

7 lines
168 B
Rust

use env_logger::{Builder, Env};
use opensmtpd::SmtpIn;
fn main() {
Builder::from_env(Env::default().default_filter_or("debug")).init();
SmtpIn::new().run();
}