aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command/selected.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap/command/selected.rs')
-rw-r--r--src/imap/command/selected.rs7
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(