imap: Added support for list command