Ubuntu - Dovecot - Test IMAP account using telnet

telnet my.server.com imap

shows:

* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.
    A login test@example.com john
    A OK LOGIN Ok.
    B select INBOX
    * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
    * OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted \Seen)] Limited
    * 0 EXISTS
    * 0 RECENT
    * OK [UIDVALIDITY 1021381622] Ok
    B OK [READ-WRITE] Ok
    C logout
    * BYE Courier-IMAP server shutting down
    C OK LOGOUT completed