Pour se connecter au serveur IMAP afin de tester la connexion
telnet imap.server.tld 143 ou openssl s_client -connect imaps.server.tld:993
Puis
* OK Dovecot IMAP ready.
a01 login <LOGIN> <MOT DE PASSE>  << Permet l'authentification
a01 OK Logged in.
a02 list "Mail" "*"               << Liste les dossiers existants
a02 OK List completed.
a03 SELECT INBOX                  << Selection de la boîte d'INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent \*)] Flags permitted.
* 74 EXISTS                        ( La réponse du serveur signale 74 messages lus 
* 2 RECENT                         ( et deux non lus
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1219800662] UIDs valid
* OK [UIDNEXT 6730] Predicted next UID
a03 OK [READ-WRITE] Select completed.
a05 logout                        << Déconnexion
* BYE Logging out
a05 OK Logout completed.