aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command/anonymous.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-29 17:16:41 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-29 17:16:41 +0100
commit771c4eac799ec3d9f1e9c41ab1fdc75c1bcb4868 (patch)
tree9bea644618301be0a0eb1478e54e9e59f8690eda /src/imap/command/anonymous.rs
parentadb1a3b7c1cb24a773060f5944cdfe1ea7bd5816 (diff)
downloadaerogramme-771c4eac799ec3d9f1e9c41ab1fdc75c1bcb4868.tar.gz
aerogramme-771c4eac799ec3d9f1e9c41ab1fdc75c1bcb4868.zip
covering imap commands
Diffstat (limited to 'src/imap/command/anonymous.rs')
-rw-r--r--src/imap/command/anonymous.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imap/command/anonymous.rs b/src/imap/command/anonymous.rs
index d258bd3..6ba19cf 100644
--- a/src/imap/command/anonymous.rs
+++ b/src/imap/command/anonymous.rs
@@ -21,7 +21,10 @@ pub async fn dispatch(ctx: AnonymousContext<'_>) -> Result<(Response, flow::Tran
CommandBody::Capability => ctx.capability().await,
CommandBody::Logout => ctx.logout().await,
CommandBody::Login { username, password } => ctx.login(username, password).await,
- _ => Ok((Response::no("Command unavailable")?, flow::Transition::None)),
+ cmd => {
+ tracing::warn!("Unknown command {:?}", cmd);
+ Ok((Response::no("Command unavailable")?, flow::Transition::None))
+ }
}
}