diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-29 17:16:41 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-29 17:16:41 +0100 |
commit | 771c4eac799ec3d9f1e9c41ab1fdc75c1bcb4868 (patch) | |
tree | 9bea644618301be0a0eb1478e54e9e59f8690eda /src/imap/command/anonymous.rs | |
parent | adb1a3b7c1cb24a773060f5944cdfe1ea7bd5816 (diff) | |
download | aerogramme-771c4eac799ec3d9f1e9c41ab1fdc75c1bcb4868.tar.gz aerogramme-771c4eac799ec3d9f1e9c41ab1fdc75c1bcb4868.zip |
covering imap commands
Diffstat (limited to 'src/imap/command/anonymous.rs')
-rw-r--r-- | src/imap/command/anonymous.rs | 5 |
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)) + } } } |