[−][src]Function spamassassin_milter::run
pub fn run(socket: &str, config: Config) -> Result<()>
Starts SpamAssassin Milter listening on the given socket using the supplied configuration.
This is a blocking call.
Errors
If execution of the milter fails, an error variant of type milter::Error
is returned.
Examples
use spamassassin_milter::Config; use std::process; let socket = "inet:3000@localhost"; let config = Config::builder().build(); if let Err(e) = spamassassin_milter::run(socket, config) { eprintln!("failed to run spamassassin-milter: {}", e); process::exit(1); }