aboutsummaryrefslogtreecommitdiff
path: root/src/imap/session.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-22 17:25:04 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-22 17:25:04 +0200
commitac974184def76fefba6c36c5c9e0ff0298f860ff (patch)
tree2df5bdce347e0fc410a48d0c6f1dbdd49e29608b /src/imap/session.rs
parent50b19729878938b63ea33d4dbdcfd254b4462110 (diff)
downloadaerogramme-ac974184def76fefba6c36c5c9e0ff0298f860ff.tar.gz
aerogramme-ac974184def76fefba6c36c5c9e0ff0298f860ff.zip
Refactor selected
Diffstat (limited to 'src/imap/session.rs')
-rw-r--r--src/imap/session.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imap/session.rs b/src/imap/session.rs
index e270ec6..a500e2b 100644
--- a/src/imap/session.rs
+++ b/src/imap/session.rs
@@ -126,7 +126,7 @@ impl Instance {
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::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),