Email CLI#
Agent-optimized CLI for ProtonMail Bridge email operations.
Quick Start#
# Get inbox stats
python email_cli.py stats
# List unread emails
python email_cli.py list --unread
# Star an email
python email_cli.py star <email-id>
# Search emails
python email_cli.py search "query"
Files#
email_cli.py- Main CLI toolopencode.json- MCP configuration for opencodeAGENT_DOCUMENTATION.md- Complete CLI referencedata/- Generated reports and analysis data (gitignored)
Setup#
- ProtonMail Bridge must be running
- Install typer:
pip3 install typer
Usage#
See AGENT_DOCUMENTATION.md for full command reference and JSON schemas.
MCP vs CLI#
- MCP (via opencode): Simple read/send/delete operations
- CLI (this tool): Full IMAP control including starring, complex searches, bulk operations
Use CLI for operations MCP cannot do (starring, flagging, complex filtering).