Updated ImapStream to implement MimeKit's new ICancellableStream interface