The following methods are available via both POP3 and POP3_SSL classes for the management of the remote mailbox itself.
- p.dele(msgid): Mark for deletion message with message ID msgid.
- p.getwelcome(): Returns the welcome message sent by the server.
- p.list([msgid]): Returns a tuple of information about the mailbox. The format of the tuple is response, message list, and size. The response is the server response code, either '+OK' for success or '-ERR' for failure (see RFC 1725, the POP3 protocol description, for more details on this). If msgid is specified, information about only that message will be returned.
- p.quit(): Quits the current session, unlocking the mailbox.
- p.retr(msgid): Retrieves the message with ID msgid. The value returned is a tuple of the format: response, lines, and size. The response may be '+OK' or '-ERR' for success or failure. If the latter, an error message is received. Otherwise, lines holds the lines of the message, and size is the size of the block in bytes.
- prset(): Removes deletion marks for the current mailbox.
- p.uidl([msgid]): Returns a digest list of the messages on the server. If the optional msgid argument is specified, only information about that message will be returned. Otherwise, the digest will pertain to all messages in the box.