Function deltachat::authres::handle_authres

source ·
pub(crate) async fn handle_authres(
    context: &Context,
    mail: &ParsedMail<'_>,
    from: &str
) -> Result<DkimResults>
Expand description

authres is short for the Authentication-Results header, defined in, which contains info about whether DKIM and SPF passed.

To mitigate From forgery, we remember for each sending domain whether it is known to have valid DKIM. If an email from such a domain comes with invalid DKIM, we don’t allow changing the autocrypt key.