Reproduce with a sleep
This commit is contained in:
parent
5b3b2955fc
commit
c6f0118ef8
1 changed files with 4 additions and 2 deletions
|
@ -44,6 +44,8 @@ impl Service<Request> for Connection {
|
||||||
|
|
||||||
let r = match req.body {
|
let r = match req.body {
|
||||||
CommandBody::Capability => {
|
CommandBody::Capability => {
|
||||||
|
use tokio::time::{sleep, Duration};
|
||||||
|
sleep(Duration::from_millis(100)).await;
|
||||||
let capabilities = vec![Capability::Imap4Rev1, Capability::Idle];
|
let capabilities = vec![Capability::Imap4Rev1, Capability::Idle];
|
||||||
let body = vec![Data::Capability(capabilities)];
|
let body = vec![Data::Capability(capabilities)];
|
||||||
Response::ok(
|
Response::ok(
|
||||||
|
@ -148,8 +150,8 @@ impl Server {
|
||||||
|
|
||||||
|
|
||||||
let creds = self.mailstore.login_provider.login("quentin", "poupou").await?;
|
let creds = self.mailstore.login_provider.login("quentin", "poupou").await?;
|
||||||
let mut mailbox = Mailbox::new(&creds, "TestMailbox".to_string()).await?;
|
//let mut mailbox = Mailbox::new(&creds, "TestMailbox".to_string()).await?;
|
||||||
mailbox.test().await?;
|
//mailbox.test().await?;
|
||||||
|
|
||||||
let server = ImapServer::new(self.incoming).serve(Instance::new(self.mailstore.clone()));
|
let server = ImapServer::new(self.incoming).serve(Instance::new(self.mailstore.clone()));
|
||||||
let _ = server.await?;
|
let _ = server.await?;
|
||||||
|
|
Loading…
Reference in a new issue