From 2bf88108a6341e4b30d9d786099056334ec7db4a Mon Sep 17 00:00:00 2001 From: Hocuri Date: Fri, 14 Oct 2022 17:29:05 +0200 Subject: [PATCH] fix ci --- src/authres_handling.rs | 11 +++++------ src/config.rs | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/authres_handling.rs b/src/authres_handling.rs index d2aff7c17..d3f11eea6 100644 --- a/src/authres_handling.rs +++ b/src/authres_handling.rs @@ -15,14 +15,14 @@ use crate::headerdef::HeaderDef; use crate::tools::EmailAddress; /// `authres` is short for the Authentication-Results header, defined in -/// https://datatracker.ietf.org/doc/html/rfc8601, which contains info +/// , 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. /// -/// See https://github.com/deltachat/deltachat-core-rust/issues/3507. +/// See . pub(crate) async fn handle_authres( context: &Context, mail: &ParsedMail<'_>, @@ -215,7 +215,7 @@ async fn should_allow_keychange( let ids = parse_authservid_candidates_config(&ids_config); // Remove all foreign authentication results - authres.retain_mut(|(authserv_id, _dkim_passed)| ids.contains(authserv_id.as_str())); + authres.retain(|(authserv_id, _dkim_passed)| ids.contains(authserv_id.as_str())); if authres.is_empty() { // If the authentication results are empty, then our provider doesn't add them @@ -530,7 +530,7 @@ Authentication-Results: gmx.net; dkim=pass header.i=@slack.com"; let t = TestContext::new().await; t.configure_addr(&self_addr).await; if !authres_parsing_works { - println!("========= Receiving as {self_addr} ========="); + println!("========= Receiving as {} =========", &self_addr); } // Simulate receiving all emails once, so that we have the correct authserv-ids @@ -587,10 +587,9 @@ Authentication-Results: gmx.net; dkim=pass header.i=@slack.com"; entry.path(), dir.iter().map(|e| e.file_name()).collect::>() ); - println!("works {authres_parsing_works} self {self_domain}"); test_failed = true; } - println!("From {from_domain}: {dkim_result}"); + println!("From {}: {}", from_domain, dkim_result); } } diff --git a/src/config.rs b/src/config.rs index dd042baf3..612412aa5 100644 --- a/src/config.rs +++ b/src/config.rs @@ -188,7 +188,7 @@ pub enum Config { /// Space-separated list of all the authserv-ids which we believe /// may be the one of our email server. /// - /// See [update_authservid_candidates](`crate::authres_handling::update_authservid_candidates`). + /// See `crate::authres_handling::update_authservid_candidates`. AuthservidCandidates, }