expunge method

Future<Mailbox> expunge()

Expunges (deletes) any messages that are marked as deleted.

The EXPUNGE command permanently removes all messages that have the \Deleted flag set from the currently selected mailbox. Before returning an OK to the client, an untagged EXPUNGE response is sent for each message that is removed.

Implementation

Future<Mailbox> expunge() {
  final cmd = Command('EXPUNGE');
  return sendCommand<Mailbox>(cmd, NoopParser(this, _selectedMailbox));
}