Description
Imbox is a Python library and command-line tool for reading IMAP mailboxes and turning email content into machine-readable data. It is aimed at agentic workflows, where a script or AI agent needs to read mail. The CLI fetches messages from the terminal and can save the results to a JSON file. It has a messages command with optional filters, and a folders command that lists everything on the IMAP server. Configuration uses environment variables for the IMAP server URL, username, password or app password, SSL and port settings, STARTTLS, log level and output options. The README recommends running the CLI with uv and includes a debugging section. There is also a Python API for use inside your own code. The package needs Python 3.11, 3.12 or 3.13 and installs with pip. The source is public on GitHub. It suits developers who want a mail reader that their own scripts can call and parse.…
Highlights
- Reads IMAP mailboxes into structured data
- Messages and folders commands in the CLI
- Saves results to JSON
- Configured with environment variables
- Python library API
Ratings & Reviews
No ratings yet
Be the first to rate Imbox.
People also visit
Imbox FAQ
What is imbox?
A Python library for reading IMAP mailboxes and converting email content into machine-readable data.
How do I install it?
Run pip install imbox. The README says it needs Python 3.11, 3.12 or 3.13.
What does the CLI do?
It fetches emails from the terminal and can save the results to a JSON file. A folders command lists the folders on the server.
Which email server does it use by default?
The IMBOX_IMAP_URL setting defaults to imap.gmail.com, and you can change it.
Does it support SSL?
The README says SSL is enabled by default on port 993, and STARTTLS can be turned on instead.
What are the best Imbox alternatives?
Popular alternatives to Imbox include RustMailer, Imitate Email and Recivo. See all Imbox alternatives





