aboutsummaryrefslogtreecommitdiff
path: root/src/imap/session.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-22 16:52:38 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-22 16:52:38 +0200
commit50b19729878938b63ea33d4dbdcfd254b4462110 (patch)
tree8caf986a67ed648150a1f7cce8296c1da957d6d1 /src/imap/session.rs
parent98f55be7304ef1078960408ff4435109601c0206 (diff)
downloadaerogramme-50b19729878938b63ea33d4dbdcfd254b4462110.tar.gz
aerogramme-50b19729878938b63ea33d4dbdcfd254b4462110.zip
Authenticated state works
Diffstat (limited to 'src/imap/session.rs')
-rw-r--r--src/imap/session.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imap/session.rs b/src/imap/session.rs
index 33b138b..e270ec6 100644
--- a/src/imap/session.rs
+++ b/src/imap/session.rs
@@ -125,8 +125,8 @@ impl Instance {
// on the State.
let ctrl = match &self.state {
flow::State::NotAuthenticated => anonymous::dispatch(ctx).await,
- /*flow::State::Authenticated(user) => authenticated::dispatch(ctx, user).await,
- flow::State::Selected(user, mailbox) => selected::dispatch(ctx, user, mailbox).await,*/
+ flow::State::Authenticated(user) => authenticated::dispatch(ctx, user).await,
+ /*flow::State::Selected(user, mailbox) => selected::dispatch(ctx, user, mailbox).await,*/
_ => Status::bad(Some(ctx.req.tag.clone()), None, "No commands are allowed in the LOGOUT state.")
.map(|s| (vec![ImapRes::Status(s)], flow::Transition::No))
.map_err(Error::msg),