[−][src]Function spf_milter::run_with_lookup
pub fn run_with_lookup(
opts: CliOptions,
lookup: impl Lookup + Send + Sync + 'static
) -> Result<()>
Starts SPF Milter with the given CLI options, using lookup
for all DNS
queries.
This method can be used to run SPF Milter with a mock DNS resolver, especially for testing.
This is a blocking call.
Errors
If initialisation or execution of the milter fails, a milter::Error
variant is returned.