mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
Remove smtp_certificate_checks references
This commit is contained in:
@@ -85,7 +85,7 @@ mod tests {
|
|||||||
assert_eq!(result, response.to_owned());
|
assert_eq!(result, response.to_owned());
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
let request = r#"{"jsonrpc":"2.0","method":"batch_set_config","id":2,"params":[1,{"addr":"","mail_user":"","mail_pw":"","mail_server":"","mail_port":"","mail_security":"","imap_certificate_checks":"","send_user":"","send_pw":"","send_server":"","send_port":"","send_security":"","smtp_certificate_checks":""}]}"#;
|
let request = r#"{"jsonrpc":"2.0","method":"batch_set_config","id":2,"params":[1,{"addr":"","mail_user":"","mail_pw":"","mail_server":"","mail_port":"","mail_security":"","imap_certificate_checks":"","send_user":"","send_pw":"","send_server":"","send_port":"","send_security":""}]}"#;
|
||||||
let response = r#"{"jsonrpc":"2.0","id":2,"result":null}"#;
|
let response = r#"{"jsonrpc":"2.0","id":2,"result":null}"#;
|
||||||
session.handle_incoming(request).await;
|
session.handle_incoming(request).await;
|
||||||
let result = receiver.recv().await?;
|
let result = receiver.recv().await?;
|
||||||
|
|||||||
@@ -285,7 +285,6 @@ async fn test_get_info_completeness() {
|
|||||||
"send_security",
|
"send_security",
|
||||||
"server_flags",
|
"server_flags",
|
||||||
"skip_start_messages",
|
"skip_start_messages",
|
||||||
"smtp_certificate_checks",
|
|
||||||
"proxy_url", // May contain passwords, don't leak it to the logs.
|
"proxy_url", // May contain passwords, don't leak it to the logs.
|
||||||
"socks5_enabled", // SOCKS5 options are deprecated.
|
"socks5_enabled", // SOCKS5 options are deprecated.
|
||||||
"socks5_host",
|
"socks5_host",
|
||||||
|
|||||||
@@ -171,8 +171,7 @@ impl EnteredLoginParam {
|
|||||||
|
|
||||||
// The setting is named `imap_certificate_checks`
|
// The setting is named `imap_certificate_checks`
|
||||||
// for backwards compatibility,
|
// for backwards compatibility,
|
||||||
// but now it is a global setting applied to all protocols,
|
// but now it is a global setting applied to all protocols.
|
||||||
// while `smtp_certificate_checks` is ignored.
|
|
||||||
let certificate_checks = if let Some(certificate_checks) = context
|
let certificate_checks = if let Some(certificate_checks) = context
|
||||||
.get_config_parsed::<i32>(Config::ImapCertificateChecks)
|
.get_config_parsed::<i32>(Config::ImapCertificateChecks)
|
||||||
.await?
|
.await?
|
||||||
|
|||||||
Reference in New Issue
Block a user