aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-13 11:00:35 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-13 11:00:35 +0200
commita1ca6d9defc844fee52d966951701a57727050c7 (patch)
treefaccf61f4f882dc05f3812655bb6f58bde79b725 /src/imap/command
parent7959adb8e970c9006ea9799b5ddd6b2c9aac217a (diff)
downloadaerogramme-a1ca6d9defc844fee52d966951701a57727050c7.tar.gz
aerogramme-a1ca6d9defc844fee52d966951701a57727050c7.zip
"set flags" as a bayou op
Diffstat (limited to 'src/imap/command')
-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(