imap: support deleting messages