Skip to main content

Mailbox Common

CI Coverage License Python

PyPI benethos-mailbox-service Container benethos-mailbox-service

PyPI benethos-mailbox-agents Container benethos-mailbox-agents

PyPI benethos-mailbox-mcp Container benethos-mailbox-mcp

PyPI benethos-mailbox-client

PyPI benethos-mailbox-common

Sponsor PayPal

benethos-mailbox-mcp on Glama

Beta, version 0.11.0. Usable with real accounts. A breaking change of the API or the configuration is announced in the changelog. Stored data is carried forward by migrations.

What mailbox-service, mailbox-mcp and mailbox-agents of Mailbox need alike, held once, on PyPI as benethos-mailbox-common. The MCP server and the agents cannot see the service, so what they all use lives here.

Mailbox is self-hosted and has five packages. This one is installed with the service, the MCP server and the agents and is not meant to be used on its own. To use Mailbox, start with the service: Install.

Package Its part How you get it
mailbox-service It holds the connections to your mail accounts and their credentials, encrypted. It offers one REST API for every provider and decides what a token may do. Getting started
mailbox-client The Python client of the REST API. It does not use this package. from PyPI: Install
mailbox-mcp The MCP server. It turns the REST API into tools for an AI assistant, on top of the client. after the service: Getting started
mailbox-common This package. What the service, the MCP server and the agents share. installed with each of them
mailbox-agents Small AI agents that sort and mark mail, on top of the client. installs this package

What the project is for: the repository's README.

Contents

What it holds

Five groups, one per concern. A group stands alone: a module imports only inside its group.

Group What it holds Needs
mail Mail itself, nothing of Mailbox. The visible text of an HTML body, as the mail page of the service shows it and the model of the MCP server reads it. Addresses in a readable form. The marks a person sees on a message, and their words. the standard library
log The line of a log: its format, its levels and its time, plain, in colour on a terminal or as JSON. Secrets are noted once and masked in every text. the standard library
paths Where a program keeps its files: the folders of the operating system for settings and data. the extra paths, which brings platformdirs
settings A program's settings, from the command line, the environment, a settings file and the defaults. the extra settings, which brings pydantic-settings
values Values written one way: JSON compact to send and canonical to hash, sizes, a pause that doubles up to a ceiling, ids, tokens and digests, and text on one line. the standard library

So the service, the MCP server and the agents turn an HTML mail into the same text, write the same log line and mask the same secrets.

It sees neither the service, nor the MCP server, nor the client, nor the agents.

Install

There is nothing to install. The service, the MCP server and the agents bring it, with the extras they need.

On its own it needs the standard library alone. An extra is named after its group, and all brings every extra:

uv add "benethos-mailbox-common[all]"      # or: pip install "benethos-mailbox-common[all]"

A module of a group that misses its extra says which one.

Versions

It is built for the packages of this repository. Its modules, groups and extras may change between versions without notice. It carries the version of the other packages, and the service, the MCP server and the agents pin it to their own. Its public interface is recorded in docs/mailbox-common/common-interface.json, which a test holds to the code.

Licence

MIT, see LICENSE.

Metadata

Release files for benethos-mailbox-common 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for benethos-mailbox-common 0.11.0
File Size Uploaded Provenance Actions
benethos_mailbox_common-0.11.0.tar.gz 28.8 kB Without provenance Details for benethos_mailbox_common-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for benethos-mailbox-common 0.11.0
File Interpreter ABI Platform Actions
benethos_mailbox_common-0.11.0-py3-none-any.whl Python 3 none any Details for benethos_mailbox_common-0.11.0-py3-none-any.whl

Total release size: 53.2 kB

Release files / benethos_mailbox_common-0.11.0.tar.gz

Download URL benethos_mailbox_common-0.11.0.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7265061087a5b3db56802129973089e92477a5eb832df21a0093be30453cf296
BLAKE2b-256 checksum
How to use checksums
3305acbb2a56a63470a100e1fb12c51205368b90cb4045313e2933502a0f1805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / benethos_mailbox_common-0.11.0-py3-none-any.whl

Download URL benethos_mailbox_common-0.11.0-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
749dac772c508f09e2089e63fc5409289a73dc42367a503370e350bd96b83e8a
BLAKE2b-256 checksum
How to use checksums
17f6421eb0d141b2845c1c0c87355c1d03aa30c366018fd113f1ce1595c39b6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for benethos-mailbox-common 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page