diff --git a/src/mimeparser.rs b/src/mimeparser.rs index 3a7730b40f..2c7847d7cc 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -555,8 +555,7 @@ impl MimeMessage { // but only if the mail was correctly signed. Probably it's ok to not require // encryption here, but let's follow the standard. let gossip_headers = mail.headers.get_all_values("Autocrypt-Gossip"); - gossiped_keys = - parse_gossip_headers(context, &from.addr, &recipients, gossip_headers).await?; + gossiped_keys = parse_gossip_headers(context, gossip_headers).await?; } if let Some(inner_from) = inner_from { @@ -2135,12 +2134,8 @@ fn remove_header( /// Parses `Autocrypt-Gossip` headers from the email, /// saves the keys into the `public_keys` table, /// and returns them in a HashMap
. -/// -/// * `from`: The address which sent the message currently being parsed async fn parse_gossip_headers( context: &Context, - from: &str, - recipients: &[SingleInfo], gossip_headers: Vec