IMAP

Checking With Telnet
telnet imap.server.co.uk 143

. login username password . status INBOX (messages) . logout

http://bobpeers.com/technical/telnet_imap