Setup
Configure the account using Email setup. Python needs theemail extra; TypeScript imports HIMALAYA from the Node package.
Supported commands
Runhimalaya <command> --help for the supported flags and operands.
This list is generated from Mirage’s registered command tree.
Triage and read
-m/--mailbox defaults to INBOX. Envelopes
include headers, identifiers, flags and attachment metadata; bodies and
snippets appear in message read. --raw returns RFC 5322 bytes.
Listings are newest first, with pages starting at 1 and a default page size
of 25. The account’s max_messages (default 200) bounds the search and paging
window. Sorted search considers that whole window.
Search conditions are date, before, after, from, to, subject,
body and flag. Combine them with and, or, not and parentheses;
sort with order by date|from|to|subject [asc|desc]. Date conditions use the
message’s Date: header, and after is exclusive. A pattern containing
spaces needs literal double quotes inside the shell quotes, as above.
Malformed queries exit 1 before contacting the server.
Compose, reply and send
--send, compose/reply/forward print MIME bytes and send nothing.
Bodies come from --body or stdin. message send accepts raw MIME on stdin
or as its inline operand. --attach is repeatable and reads workspace files
through the VFS; --from, --to, --cc, --bcc, --subject and
--signature control the composed message.
Reply uses Reply-To or From, adds reply headers and quotes the source.
Forward prefixes the subject with Fwd: and keeps References. Both accept
--posting-style top|bottom and --quote-headline. There is no reply-all
switch; supply the extra recipients through --cc.
Save drafts and sent copies
\Sent folder, or the config’s sent_folder (sentFolder)
when set. save_copy=False (saveCopy: false) disables the default copy.
--save MAILBOX overrides both settings for one command; without --send
on a composer, it saves a draft and sends nothing.
A sent-copy failure after delivery is a warning with exit 0: retrying would
send the message twice. Saving a draft without sending fails normally if
IMAP refuses it.
VFS and limits
The optional Email VFS exposes the mailbox as files. Reading a message does not mark it seen. The CLI uses its own account config; attachments can come from any readable workspace mount. Mailbox management, moving/deleting messages, flag mutation and attachment download commands are absent.--body-file and --signature-file are also
absent; use stdin. Output is JSON rather than upstream’s tables, and sent-copy
saving defaults on in Mirage. Server matching rules still determine how
search patterns match addresses and text.
Upstream Himalaya offers a choice of
MIT or
Apache-2.0.
Mirage’s command implementation is Apache-2.0; see
compatibility and licenses.