Read-only by default: folders open with EXAMINE and bodies are fetched with BODY.PEEK, so nothing is moved, flagged or marked read.
$ uv tool install git+https://github.com/DocGerd/mailferret
$ mailferret setup
This puts mailferret on PATH, which every later command below needs, register in particular.
Before the first PyPI release, register finds no launcher without this install.
Alternatively, run the setup once with uvx, which leaves no mailferret on PATH:
$ uvx --from git+https://github.com/DocGerd/mailferret mailferret setup
After the first PyPI release the install is uv tool install mailferret and the one-shot uvx mailferret setup.
pipx or a venv work too.
Requires uv and Python 3.13 or newer.
Status: docs/STATUS.md.
Safety
- Read-only: no tool moves, flags, deletes or sends. Writing and SMTP exist only as disabled interfaces; the config rejects enabling them.
- Credentials live in the OS keyring or a command you configure, never in the config, logs or tool output. Store them with
mailferret auth set, never by pasting them into a chat. - TLS certificate verification is always on. A rejected login is never retried.
- Mail text is untrusted data, wrapped in delimiters and stripped of hidden content.
Residual risk: mailferret cannot stop a client from obeying instructions hidden in a mail.
If your assistant can read mail and also run commands or fetch URLs, an injected mail may steer it to send what it has read elsewhere.
Read mail in a context without shell or web tools, and keep other outbound tools out of it.
The plugin's mail-reader agent is meant for this but is not installable yet, and its runtime tool list is unverified (T-18).
A residual path remains: its summary returns to a parent that may have shell and web tools.
Details: SECURITY.md and T-18 in docs/SECURITY.md.
Set up
$ mailferret setup
$ mailferret accounts list
setup adds an account, stores its password and tests the connection read-only.
Change or store a password later in a terminal:
$ mailferret auth set <account>
Per-platform backends, WSL with pass, and exporting DBUS_SESSION_BUS_ADDRESS for the keyring: docs/user/credentials.md.
Connect a client
- Claude Code:
mailferret register claude-code - Claude Desktop:
mailferret register claude-desktop - Any MCP client: a stdio entry with command
mailferretand args["serve"] - Claude Code plugin (adds the
mail-readeragent anddoctorskill): not installable until the first PyPI release - claude.ai zip upload: unverified
All of it: docs/user/clients.md.
Tools
list_accounts, list_folders, search, get_message, get_thread, list_attachments, get_attachment_text, list_aliases.
Overview: docs/user/tools.md.
Docs
Troubleshooting
$ mailferret doctor
It checks config, credentials, the connection and client registrations, and changes nothing.
Contributing and security
CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md.
Metadata
Release files for mailferret 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailferret-0.1.0.tar.gz | 197.8 kB | With provenance | Details for mailferret-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailferret-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mailferret-0.1.0-py3-none-any.whl |
Total release size: 447.3 kB
Release files / mailferret-0.1.0.tar.gz
| Download URL | mailferret-0.1.0.tar.gz |
|---|---|
| Size | 197.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92e210e030b9bece52ba4e85591033130c36216e1ebe68c9f1abb304ad6cbc19
|
|
BLAKE2b-256 checksum How to use checksums |
448a127e8457032076387ca703478b6d391485bb05235e85d5a10f4017db659d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / mailferret-0.1.0-py3-none-any.whl
| Download URL | mailferret-0.1.0-py3-none-any.whl |
|---|---|
| Size | 249.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a001485b8678f1f5f33280932bef964297cb95b07659c2af20172333f46306c7
|
|
BLAKE2b-256 checksum How to use checksums |
6c427d418849eecc02ce8d20d50b82424172cf47f56ba7bf28d6a9c9541415e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for mailferret 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mailferret-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA 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.