The poplib module provides a low-level client-side connection to a POP3 mail server. POP3 is described in RFC 1725, which may be a useful reference when using this module.
Two objects are defined by this module:
POP3(host [, port])
Creates a connection to a POP3 server at host. port is an optional port number and defaults to 110.
POP3_SSL(host [, port [, keyfile [, certfile]]])
Creates a secure connection to a POP3 server at host. port is an optional port number and defaults to 995. keyfile and certfile specify PEM-formatted private key and certificate files for client authentication if required.
An instance, p, of POP3 or POP3_SSL supports the following methods:
Logs in to the POP3 server using APOP authentication. ...