List IMAP messages in a mailbox from command line