Interact with POP3 Server

telnet <ip> <port>
  1. USER <username>: Start a new session, replace <username> with your username.
  2. PASS <password>: Authenticate user session, replace <password> with your password.
  3. STAT: Retrieve mailbox status, usually includes the number of emails and the size of the mailbox in the response.
  4. LIST: List all emails and their sizes. Can be used with a parameter to list information of specific emails.
  5. RETR <message_number>: Retrieve the content of the email with the specified number, replace <message_number> with the email number you want to retrieve.
  6. DELE <message_number>: Mark the email with the specified number for deletion. The email will actually be deleted only when the session ends.
  7. NOOP: No operation, usually used to keep the connection or check the connection status.
  8. RSET: Reset the session, undo the deletion markers from all DELE commands.
  9. TOP <message_number> <line_count>: Retrieve the headers of the specified email and the specified number of lines of text. <line_count> is the number of lines of email content you want to retrieve.
  10. UIDL: List emails and their unique identifiers, sometimes used to check the uniqueness of emails.
  11. QUIT: End the session and exit.