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

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.1
File Size Uploaded Provenance Actions
benethos_mailbox_common-0.11.1.tar.gz 28.8 kB Without provenance Details for benethos_mailbox_common-0.11.1.tar.gz

Built distribution (wheel)

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

Total release size: 53.2 kB

Release files / benethos_mailbox_common-0.11.1.tar.gz

Download URL benethos_mailbox_common-0.11.1.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4ef6b26939a8bbce208666909a238e120d6c85d748fe0dd27ef044c80aa27e2e
BLAKE2b-256 checksum
How to use checksums
cb03bb050d3aac42692d0cbc3c433936aa59682581396ea07c913c67d39e5d78
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.1-py3-none-any.whl

Download URL benethos_mailbox_common-0.11.1-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a8c7960b22de20aabe60b965ba6976f9af4a897319f52fe61fcd7f66c7b95fc
BLAKE2b-256 checksum
How to use checksums
32401bfbe4fc3c975d0aefd9807e6f1d5f08df3be894a1f320e750f42956a7b5
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.1

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