Registry / communication / mailman

mailman

JSON →
library3.3.10pypypi✓ verified 84d ago

Mailman is the GNU mailing list manager, a Python library for running and managing mailing lists. Current version 3.3.10, released periodically with bug fixes and improvements.

pip install mailman
INSTALL
IMPORT
SIG · MAILMAN
M
mailman
communicationpythonv3.3.10
Install
11.7s avg
Import
79ms
Disk
96MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.3.10 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.080s · 91MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 11.7s · import 0.078s · 90MB
96MB installed
● package 96MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mailman
import mailman
from mailman import core
Top-level import is sufficient; direct submodule imports may break if internal structure changes.
IMailingList
from mailman.interfaces import IMailingList
from mailman.model import MailingList
IMailingList is the interface; model classes are internal and not part of the public API.

Initialize Mailman from config and access a mailing list.

import os from mailman.config import config # Initialize with a configuration file config.load(os.environ.get('MAILMAN_CONFIG', '/etc/mailman.cfg')) # Get a mailing list instance (example) from mailman.interfaces import IMailingList # Assuming a list exists list_name = 'my-list' mlist = config.db.list_store.get(list_name) print(f'List: {mlist.fqdn_listname}')
mailman --version
Debug
Known issues
breakingMailman 3.x is a complete rewrite from 2.x; APIs are not compatible. Do not expect Mailman 2.x patterns to work.
fix
Use the new REST API and library interfaces. See documentation for migration.
affects: >=3.0.0
deprecatedDirect database manipulation is deprecated; use the REST API or the library's public interfaces.
fix
Use mailman.client (REST client) or mailman.interfaces for operations.
affects: >=3.3.0
gotchaConfiguration must be loaded before accessing any components. Forgetting config.load() will raise errors.
fix
Always call config.load('/path/to/mailman.cfg') early in your script.
affects: all
Errors
Common errors & fixes
ImportError: No module named mailman
mailman is not installed or not in Python path.
fix
pip install mailman
ConfigurationError: No configuration file found.
config.load() called without a valid path or MAILMAN_CONFIG not set.
fix
Set MAILMAN_CONFIG environment variable or pass path existing cfg file.
KeyError: 'my-list'
The list does not exist in the database.
fix
Create the list first via REST API or mailman.core.initialize.
Upgrade
Version history
3.3.10latest on PyPI · released Oct 2, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
mailman — pip install mailman · libregistry