Add function for sending IMAP commands asynchronously