Telnet - IMAP Commands (fetching mail using telnet)
In order to access your mailbox you will need 3 things:
- An active internet connection
- The address of your imap-capable mail server (e.g. mail.domain.ext)
- Your username and password
The first thing to do is to open a connection from your computer to your mail server.
telnet mail.domain.ext imap
You should receive a reply like:
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.
Then log in:
A login me@mydomain.com mypassword
This should give you:
A OK LOGIN Ok.
Select the folder you want to look in (usually the inbos):
B select INBOX
This should give you some information about the contents of that mail folder:
* 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
When you have finished here's how you quit:
C logout
This should give you:
* BYE Courier-IMAP server shutting down
C OK LOGOUT completed