diff --git a/src/client.rs b/src/client.rs index 42077f9..8459013 100644 --- a/src/client.rs +++ b/src/client.rs @@ -222,7 +222,7 @@ impl Client { /// Expunge permanently removes all messages that have the \Deleted flag set from the currently /// selected mailbox. pub fn expunge(&mut self) -> Result<()> { - self.run_command_and_check_ok("CHECK") + self.run_command_and_check_ok("EXPUNGE") } /// Check requests a checkpoint of the currently selected mailbox.