implement imap-cancel