To fetch messages with POP3 using Telnet client, seems to be a series of pretty simple steps, and its good to know these basic set of commands.I have tried to list out some commands and their basic description, including the most basic status commands.
Scenario
- Open Connection
- Authenticate
- Check Mail
- Fetch Mail
- Exit
- Open connection
telnet mail.mailserverhost.com 110 - Authenticate
> USER username
> PASS password - Check Mail
> LIST - Fetch Mail
> RETR msgId - Exit
> QUIT
Its pretty simple to understand the response messages from POP3. The messages are declarative in nature.
- Success Response
+OK - Error Response
-ERR error description message
Some more commands which might be required.
- Delete Message> DELE msgID
- Reset any Delete Operation
> RSET
Delete operation takes place after the QUIT command. If any message has been queued for deletion, RSET command resets any such queue and hence clears all the delete operations. - No Operation
> NOOP
During transaction state, might require to check the system response. - STAT
The POP3 server issues a positive response with a line containing information for the maildrop. This line is called a "drop listing" for that maildrop. - APOP user digest
Authenticate using Password Digest (instead of Plain text password) - TOP msgID n
Fetch n number of lines for a message identified by msgID - UIDL msgId
get unique-id listing for particular message
http://www.apps.ietf.org/rfc/rfc1939.html
No comments:
Post a Comment