diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-22 17:25:04 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-22 17:25:04 +0200 |
commit | ac974184def76fefba6c36c5c9e0ff0298f860ff (patch) | |
tree | 2df5bdce347e0fc410a48d0c6f1dbdd49e29608b /src/imap/session.rs | |
parent | 50b19729878938b63ea33d4dbdcfd254b4462110 (diff) | |
download | aerogramme-ac974184def76fefba6c36c5c9e0ff0298f860ff.tar.gz aerogramme-ac974184def76fefba6c36c5c9e0ff0298f860ff.zip |
Refactor selected
Diffstat (limited to 'src/imap/session.rs')
-rw-r--r-- | src/imap/session.rs | 2 |
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), |