mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-18 05:47:54 +08:00
fix: auth failure due to invalid default port
This commit is contained in:
@@ -84,7 +84,7 @@ impl EmailClient {
|
||||
.sasl
|
||||
.and_then(|cfg| {
|
||||
let host = server.host_str()?;
|
||||
let port = server.port_or_known_default()?;
|
||||
let port = server.port().unwrap_or(993);
|
||||
Some(cfg.try_into_sasl(host, port))
|
||||
})
|
||||
.transpose()?;
|
||||
@@ -139,7 +139,7 @@ impl EmailClient {
|
||||
.sasl
|
||||
.and_then(|cfg| {
|
||||
let host = server.host_str()?;
|
||||
let port = server.port_or_known_default()?;
|
||||
let port = server.port().unwrap_or(587);
|
||||
Some(cfg.try_into_sasl(host, port))
|
||||
})
|
||||
.transpose()?;
|
||||
|
||||
Reference in New Issue
Block a user