deleteMailbox method
Deletes the specified mailbox
Implementation
Future<void> deleteMailbox(Mailbox mailbox) async {
if (!supportsMailboxes) {
throw MailException(
this,
'Mailboxes are not supported, check "supportsMailboxes" first',
);
}
await _incomingLock.synchronized(
() => _incomingMailClient.deleteMailbox(mailbox),
);
_mailboxes?.remove(mailbox);
}