Move strict_tls, max_smtp_rcpt_to from Provider to ProviderOptions

This commit is contained in:
iequidoo
2023-02-16 17:46:28 -03:00
committed by iequidoo
parent 604c4fcb71
commit 3b5227c42a
6 changed files with 39 additions and 139 deletions

View File

@@ -249,7 +249,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> {
}
}
},
strict_tls: Some(provider.strict_tls),
strict_tls: Some(provider.opt.strict_tls),
})
.collect();
@@ -338,7 +338,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> {
.collect();
let provider_strict_tls = param
.provider
.map_or(socks5_config.is_some(), |provider| provider.strict_tls);
.map_or(socks5_config.is_some(), |provider| provider.opt.strict_tls);
let smtp_config_task = task::spawn(async move {
let mut smtp_configured = false;