deltachat::provider

Function get_provider_info

source
pub async fn get_provider_info(
    context: &Context,
    domain: &str,
    skip_mx: bool,
) -> Option<&'static Provider>
Expand description

Returns provider for the given domain.

This function looks up domain in offline database first. If not found, it queries MX record for the domain and looks up offline database for MX domains.