Fixing expunge command to actually send EXPUNGE

This commit is contained in:
Matt McCoy 2016-06-21 16:13:56 -04:00
parent 91bcdf1a4e
commit 350329b5a4

View file

@ -222,7 +222,7 @@ impl<T: Read+Write> Client<T> {
/// 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.