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

Config

Config Reference

Common VFS 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 VFS uses IndexCacheStore (same as Gmail, Slack, Discord, and other mounts). Index entries store folder names, message UIDs, and message metadata.

Example

Finding UIDs

VFS-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.