Log on server startup

This commit is contained in:
Quentin 2022-06-03 12:26:51 +02:00
parent 9c14e9cd9e
commit 8f3a34da33
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -130,13 +130,12 @@ impl Server {
}
pub async fn run(self: Self) -> Result<()> {
tracing::info!("Starting server on {:#}", self.incoming.local_addr);
let server = ImapServer::new(self.incoming).serve(Instance::new(self.mailstore.clone()));
let _ = server.await?;
/*let creds = self.login_provider.login("quentin", "poupou").await?;
let mut mailbox = Mailbox::new(&creds, "TestMailbox".to_string()).await?;
mailbox.test().await?;*/
Ok(())