Skip to main content

Fastmail CLI mascot

fastmail-cli

Read-only email access for AI agents via JMAP, and draft responses.

PyPI version License


Demo

Demo


Installation

uv add fastmail-cli

Or run without installing:

uvx fastmail-cli help

Setup

export FASTMAIL_API_TOKEN="fmu1-..."  # from Fastmail Settings → Integrations

Usage

# Read
fastmail-cli email.query --limit 5                    # recent emails
fastmail-cli email.query --filter '{"from":"alice"}'  # search
fastmail-cli email.get --ids '["M123"]'               # full email by ID
fastmail-cli mailbox.query                            # list mailboxes
fastmail-cli thread.get --ids '["T456"]'              # get thread

# Draft (safe for AI agents - human reviews before sending)
fastmail-cli email.draft --to "bob@x.com" --subject "Hi" --body "..."
fastmail-cli email.draft-reply --id "M123" --body "Thanks!"
fastmail-cli email.draft-reply --id "M123" --body @reply.txt --reply-all

# Advanced
fastmail-cli email.changes --since-state "abc123"     # poll for changes
fastmail-cli searchsnippet.get --email-ids '["M1"]' --filter '{"text":"foo"}'
fastmail-cli describe email.query                     # show command options

All output is JSON with ok, command, meta, and data/error fields.

Required Reading

License

Apache 2.0

Metadata

Release files for fastmail-cli 0.2.3

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

Source distribution (sdist)

Source distribution for fastmail-cli 0.2.3
File Size Uploaded Provenance Actions
fastmail_cli-0.2.3.tar.gz 3.4 MB Without provenance Details for fastmail_cli-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastmail-cli 0.2.3
File Interpreter ABI Platform Actions
fastmail_cli-0.2.3-py3-none-any.whl Python 3 none any Details for fastmail_cli-0.2.3-py3-none-any.whl

Total release size: 3.5 MB

Release files / fastmail_cli-0.2.3.tar.gz

Download URL fastmail_cli-0.2.3.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
05727877ceb2e3f9163e4ecdb9e4e333acf776a910df805d496301ad4060750d
BLAKE2b-256 checksum
How to use checksums
42173392738ed4e52534df2a59bb2f2dc5ee766ed7c60194100d706f08599b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fastmail_cli-0.2.3-py3-none-any.whl

Download URL fastmail_cli-0.2.3-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33f5e060a40bfb2f9abb6baa5324092396bf9208e4d88b5a8c9c13b9cb28e742
BLAKE2b-256 checksum
How to use checksums
286c13e515c99a2f2ac85d82eeb54425cd2332ac526ee0a9afd0a625e1263cf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fastmail-cli 0.2.3

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