Skip to main content

CLI for AI agents to access Fastmail via JMAP - draft responses without sending

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastmail_cli-0.2.3.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastmail_cli-0.2.3-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file fastmail_cli-0.2.3.tar.gz.

File metadata

  • Download URL: fastmail_cli-0.2.3.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for fastmail_cli-0.2.3.tar.gz
Algorithm Hash digest
SHA256 05727877ceb2e3f9163e4ecdb9e4e333acf776a910df805d496301ad4060750d
MD5 157c3fcf6e3e56538fff4e1af2842c5c
BLAKE2b-256 42173392738ed4e52534df2a59bb2f2dc5ee766ed7c60194100d706f08599b95

See more details on using hashes here.

File details

Details for the file fastmail_cli-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: fastmail_cli-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for fastmail_cli-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33f5e060a40bfb2f9abb6baa5324092396bf9208e4d88b5a8c9c13b9cb28e742
MD5 6b44ddd9f922e785072aa1020f08a714
BLAKE2b-256 286c13e515c99a2f2ac85d82eeb54425cd2332ac526ee0a9afd0a625e1263cf0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page