mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-01 06:55:13 +00:00
fix smtp discovery wrong config
This commit is contained in:
parent
5cb247169a
commit
79da9404f3
|
@ -11,7 +11,6 @@ pub(crate) fn configure() -> Result<BackendConfig> {
|
||||||
.default(String::from("/usr/bin/msmtp"))
|
.default(String::from("/usr/bin/msmtp"))
|
||||||
.interact()?
|
.interact()?
|
||||||
.into(),
|
.into(),
|
||||||
// ..Default::default() // in case any other field was added
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(BackendConfig::Sendmail(config))
|
Ok(BackendConfig::Sendmail(config))
|
||||||
|
|
|
@ -42,7 +42,7 @@ pub(crate) async fn configure(
|
||||||
let autoconfig_oauth2 = autoconfig.and_then(|c| c.oauth2());
|
let autoconfig_oauth2 = autoconfig.and_then(|c| c.oauth2());
|
||||||
let autoconfig_server = autoconfig.and_then(|c| {
|
let autoconfig_server = autoconfig.and_then(|c| {
|
||||||
c.email_provider()
|
c.email_provider()
|
||||||
.incoming_servers()
|
.outgoing_servers()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.find(|server| matches!(server.server_type(), ServerType::Smtp))
|
.find(|server| matches!(server.server_type(), ServerType::Smtp))
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue