diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-31 11:01:18 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-31 11:01:18 +0100 |
commit | 22f0eb901ae1f4a38a93bcfc268ebe0f74a6482e (patch) | |
tree | 885d59c3bfb961b058b2ad7a7ec8915750c54a3b /src/server.rs | |
parent | c27919a757ac15fe49393ef91d90a525a3e501ee (diff) | |
download | aerogramme-22f0eb901ae1f4a38a93bcfc268ebe0f74a6482e.tar.gz aerogramme-22f0eb901ae1f4a38a93bcfc268ebe0f74a6482e.zip |
format + fix storage bug
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/server.rs b/src/server.rs index cf9930a..9899981 100644 --- a/src/server.rs +++ b/src/server.rs @@ -7,9 +7,9 @@ use futures::try_join; use log::*; use tokio::sync::watch; +use crate::auth; use crate::config::*; use crate::imap; -use crate::auth; use crate::lmtp::*; use crate::login::ArcLoginProvider; use crate::login::{demo_provider::*, ldap_provider::*, static_provider::*}; @@ -47,9 +47,16 @@ impl Server { }; let lmtp_server = config.lmtp.map(|lmtp| LmtpServer::new(lmtp, login.clone())); - let imap_unsecure_server = config.imap_unsecure.map(|imap| imap::new_unsecure(imap, login.clone())); - let imap_server = config.imap.map(|imap| imap::new(imap, login.clone())).transpose()?; - let auth_server = config.auth.map(|auth| auth::AuthServer::new(auth, login.clone())); + let imap_unsecure_server = config + .imap_unsecure + .map(|imap| imap::new_unsecure(imap, login.clone())); + let imap_server = config + .imap + .map(|imap| imap::new(imap, login.clone())) + .transpose()?; + let auth_server = config + .auth + .map(|auth| auth::AuthServer::new(auth, login.clone())); Ok(Self { lmtp_server, |