aboutsummaryrefslogtreecommitdiff
path: root/src/imap/session.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-03 15:00:05 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-03 15:00:05 +0100
commitef257e286a5377031bfde9645629825d3223b3d4 (patch)
tree78853c708949b709061e5b1f24f16343ceaee895 /src/imap/session.rs
parent6d37924399dd5d04f5be2506e3e044dd165f6399 (diff)
downloadaerogramme-ef257e286a5377031bfde9645629825d3223b3d4.tar.gz
aerogramme-ef257e286a5377031bfde9645629825d3223b3d4.zip
implement move
Diffstat (limited to 'src/imap/session.rs')
-rw-r--r--src/imap/session.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/imap/session.rs b/src/imap/session.rs
index c4f062f..55026b9 100644
--- a/src/imap/session.rs
+++ b/src/imap/session.rs
@@ -1,7 +1,7 @@
+use crate::imap::capability::ServerCapability;
use crate::imap::command::{anonymous, authenticated, examined, selected};
use crate::imap::flow;
use crate::imap::response::Response;
-use crate::imap::capability::ServerCapability;
use crate::login::ArcLoginProvider;
use imap_codec::imap_types::command::Command;
@@ -33,10 +33,11 @@ impl Instance {
anonymous::dispatch(ctx).await
}
flow::State::Authenticated(ref user) => {
- let ctx = authenticated::AuthenticatedContext {
- req: &cmd,
+ let ctx = authenticated::AuthenticatedContext {
+ req: &cmd,
server_capabilities: &self.server_capabilities,
- user };
+ user,
+ };
authenticated::dispatch(ctx).await
}
flow::State::Selected(ref user, ref mut mailbox) => {