diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-13 11:00:35 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-13 11:00:35 +0200 |
commit | a1ca6d9defc844fee52d966951701a57727050c7 (patch) | |
tree | faccf61f4f882dc05f3812655bb6f58bde79b725 /src/imap/command/selected.rs | |
parent | 7959adb8e970c9006ea9799b5ddd6b2c9aac217a (diff) | |
download | aerogramme-a1ca6d9defc844fee52d966951701a57727050c7.tar.gz aerogramme-a1ca6d9defc844fee52d966951701a57727050c7.zip |
"set flags" as a bayou op
Diffstat (limited to 'src/imap/command/selected.rs')
-rw-r--r-- | src/imap/command/selected.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/imap/command/selected.rs b/src/imap/command/selected.rs index a6fa645..1978729 100644 --- a/src/imap/command/selected.rs +++ b/src/imap/command/selected.rs @@ -62,7 +62,12 @@ impl<'a> SelectedContext<'a> { } async fn expunge(self) -> Result<(Response, flow::Transition)> { - Ok((Response::bad("Not implemented")?, flow::Transition::None)) + let data = self.mailbox.expunge().await?; + + Ok(( + Response::ok("EXPUNGE completed")?.with_body(data), + flow::Transition::None, + )) } async fn store( |