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
- id: C1 claim: The POP3 class supports both the minimal and optional command sets from RFC 1939. source: S1 evidence: "The POP3 class supports both the minimal and optional command sets from RFC 1939"
- id: C2 claim: POP3, though widely supported, is obsolescent. source: S1 evidence: "POP3, though widely supported, is obsolescent"
- id: C3 claim: If port is omitted, the standard POP3 port (110) is used. source: S1 evidence: "If port is omitted, the standard POP3 port (110) is used"
- id: C4 claim: The reason for the exception is passed to the constructor as a string. source: S2 evidence: "The reason for the exception is passed to the constructor as a string."
Sources
- [S1] poplib — POP3 protocol client. Python Software Foundation. https://docs.python.org/3/library/poplib.html . License: PSF License Version 2. Accessed 2026-11-24.
- [S2] poplib documentation (source). CPython. https://raw.githubusercontent.com/python/cpython/main/Doc/library/poplib.rst . License: PSF License Version 2. Accessed 2026-11-24.
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
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.},
}
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.
- python-poplib.schema.json (schema; CC-BY-4.0)
- python-poplib.table.json (table; CC-BY-4.0)
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.