← All notes

Python poplib: a POP3 protocol client

Answer: The POP3 class supports both the minimal and optional command sets from RFC 1939.

What the module provides

This module defines a class that encapsulates a connection to a POP3 server and implements the protocol in RFC 1939.

POP3, though widely supported, is obsolescent.

The module provides two classes.

The implementation quality of POP3 servers varies widely, and too many are quite poor.

How a connection is opened

The connection is created when the instance is initialized.

If port is not specified, 995, the standard POP3-over-SSL port is used.

If port is omitted, the standard POP3 port (110) is used.

The reason for the exception is passed to the constructor as a string.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, poplib — POP3 protocol client; CPython, poplib documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, poplib — POP3 protocol client; CPython, poplib documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation.

Cite this

Permanent ID: iil:note:qk34bvbz

iinventedlight. 2026. "Python poplib: a POP3 protocol client." iinventedlight Library, iil:note:qk34bvbz, version of 2026-11-24. https://iinventedlight.com/library/notes/python-poplib/. License: CC-BY-4.0.

@misc{iil_note_qk34bvbz,
  author = {{iinventedlight}},
  title = {{Python poplib: a POP3 protocol client}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-24},
  url = {https://iinventedlight.com/library/notes/python-poplib/},
  note = {Permanent ID iil:note:qk34bvbz. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/python-poplib.md.