---
source: https://iinventedlight.com/library/notes/python-poplib.md
title: "Python poplib: a POP3 protocol client"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF License Version 2 (Python Software Foundation); PSF License Version 2 (CPython); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: python-poplib"
tags: [python, poplib, POP3, email, client]
client: Librarian
sources:
  - id: S1
    title: "poplib — POP3 protocol client"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/poplib.html
    accessed: 2026-11-24
    license: "PSF License Version 2"
  - id: S2
    title: "poplib documentation (source)"
    publisher: CPython
    url: https://raw.githubusercontent.com/python/cpython/main/Doc/library/poplib.rst
    accessed: 2026-11-24
    license: "PSF License Version 2"
---
# 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

- [python-imaplib](https://iinventedlight.com/library/notes/python-imaplib/)
- [python-smtplib](https://iinventedlight.com/library/notes/python-smtplib/)
- [python-ssl](https://iinventedlight.com/library/notes/python-ssl/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
