diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-17 10:14:48 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-17 10:14:48 +0100 |
commit | 1a0247e9352619bed45dfb8101133261cfecb512 (patch) | |
tree | f232ee1f31c1a6b47ee60c5ee5e465c2fbe35121 /src/imap/command | |
parent | 0eb8156cde27c54734cbe3d269ab05a876ef53ac (diff) | |
download | aerogramme-1a0247e9352619bed45dfb8101133261cfecb512.tar.gz aerogramme-1a0247e9352619bed45dfb8101133261cfecb512.zip |
WIP idle
Diffstat (limited to 'src/imap/command')
-rw-r--r-- | src/imap/command/selected.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imap/command/selected.rs b/src/imap/command/selected.rs index c9c5337..b62e2cb 100644 --- a/src/imap/command/selected.rs +++ b/src/imap/command/selected.rs @@ -81,7 +81,10 @@ pub async fn dispatch<'a>( // IDLE extension (rfc2177) CommandBody::Idle => { - unimplemented!() + Ok(( + Response::build().to_req(ctx.req).message("DUMMY response due to anti-pattern").ok()?, + flow::Transition::Idle(tokio::sync::Notify::new()), + )) } // In selected mode, we fallback to authenticated when needed |