[cc lang="bash"]
\$ telnet imap.jokeru.ro 143
or
\$ openssl s_client -connect imaps.jokeru.ro:993 -quiet
01 LOGIN test@jokeru.ro password
01 OK LOGIN Ok.
02 LIST "" *
* LIST (\HasNoChildren) "." "INBOX.Drafts"
* LIST (\Marked \HasChildren) "." "INBOX"
* LIST (\HasNoChildren) "." "INBOX.Sent"
* LIST (\HasNoChildren) "." "INBOX.Junk"
* LIST (\HasNoChildren) "." "INBOX.Trash"
02 OK LIST completed
03 LOGOUT
* BYE Courier-IMAP server shutting down
03 OK LOGOUT completed
Connection closed by foreign host.
[/cc]