small fixes

This commit is contained in:
Hocuri
2022-10-15 10:11:57 +02:00
parent 097830120b
commit e45747ea99
3 changed files with 0 additions and 8 deletions

View File

@@ -79,7 +79,6 @@ fn parse_authres_headers(
// with providers not implementing the RFC correctly, someone can trick us // with providers not implementing the RFC correctly, someone can trick us
// into thinking that an incoming email is DKIM-correct, anyway. // into thinking that an incoming email is DKIM-correct, anyway.
// The most important thing here is that we have some valid `authserv_id`. // The most important thing here is that we have some valid `authserv_id`.
// TODO is this comment understandable?
authserv_id = "invalidAuthservId"; authserv_id = "invalidAuthservId";
} }
let dkim_passed = parse_one_authres_header(&header_value, from_domain); let dkim_passed = parse_one_authres_header(&header_value, from_domain);
@@ -537,8 +536,6 @@ Authentication-Results: box.hispanilandia.net; spf=pass smtp.mailfrom=adbenitez@
println!("From {}: {}", from_domain, dkim_result); println!("From {}: {}", from_domain, dkim_result);
} }
} }
std::mem::forget(t) // TODO dbg
} }
assert!(!test_failed); assert!(!test_failed);

View File

@@ -3,7 +3,6 @@
use std::collections::HashSet; use std::collections::HashSet;
use anyhow::{Context as _, Result}; use anyhow::{Context as _, Result};
use mailparse::ParsedMail; use mailparse::ParsedMail;
use mailparse::SingleInfo; use mailparse::SingleInfo;
@@ -11,7 +10,6 @@ use crate::aheader::Aheader;
use crate::authres_handling::handle_authres; use crate::authres_handling::handle_authres;
use crate::contact::addr_cmp; use crate::contact::addr_cmp;
use crate::context::Context; use crate::context::Context;
use crate::key::{DcKey, Fingerprint, SignedPublicKey, SignedSecretKey}; use crate::key::{DcKey, Fingerprint, SignedPublicKey, SignedSecretKey};
use crate::keyring::Keyring; use crate::keyring::Keyring;
use crate::log::LogExt; use crate::log::LogExt;

View File

@@ -7,7 +7,6 @@ use std::pin::Pin;
use anyhow::{bail, Context as _, Result}; use anyhow::{bail, Context as _, Result};
use deltachat_derive::{FromSql, ToSql}; use deltachat_derive::{FromSql, ToSql};
use lettre_email::mime::{self, Mime}; use lettre_email::mime::{self, Mime};
use mailparse::{addrparse_header, DispositionType, MailHeader, MailHeaderMap, SingleInfo}; use mailparse::{addrparse_header, DispositionType, MailHeader, MailHeaderMap, SingleInfo};
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
@@ -90,7 +89,6 @@ pub struct MimeMessage {
pub decoded_data: Vec<u8>, pub decoded_data: Vec<u8>,
pub(crate) hop_info: String, pub(crate) hop_info: String,
//pub(crate) authentication_results: HashMap<AuthservId, AuthenticationResults>, // TODO
} }
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
@@ -338,7 +336,6 @@ impl MimeMessage {
is_mime_modified: false, is_mime_modified: false,
decoded_data: Vec::new(), decoded_data: Vec::new(),
hop_info, hop_info,
//authentication_results,
}; };
match partial { match partial {