Skip to main content
The Email resource exposes any IMAP mailbox as a virtual filesystem mounted at some prefix such as /email/. Sending is handled via SMTP.

Config

Config Reference

Common Resource Settings

Filesystem Layout

Example:
Folder directories appear at the root, using IMAP folder names (e.g., INBOX, Sent, Drafts).

Date Directories

Inside each folder, messages are grouped into date subdirectories formatted as YYYY-MM-DD. The date is derived from the message’s Date header.

Message Files

Each message is stored as a .email.json file. The filename shape is:

Attachments

Messages that have attachments get a companion subdirectory with the same base name (without .email.json):

Cache

The Email resource uses IndexCacheStore (same as Gmail, Slack, Discord, and other resources). Index entries store folder names, message UIDs, and message metadata.

Example

Finding UIDs

Resource-specific commands require message UIDs. These can be extracted from the filesystem:

Shell Commands

Standard commands available on the mounted email tree: Acting on mail (list, read, send, reply, forward) goes through the himalaya CLI when installed.