himalaya

Manage email via IMAP and SMTP from the terminal.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill himalaya-daddyelonmusk69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: himalaya
Source: https://github.com/DaddyElonMusk69/motis-agent/tree/main/skills/email/himalaya
Command: npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill himalaya-daddyelonmusk69

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Managing email from the terminal across multiple accounts and backends is fragmented and manual; this Skill provides clear CLI guidance and patterns to list, read, compose, search, and organize messages reliably using the himalaya tool.

Core Features & Use Cases

  • Unified CLI operations: list folders and messages, read and export raw MIME, search by sender/subject, and paginate results for large mailboxes.
  • Message composition and delivery: compose, reply, forward, and send messages non-interactively using MML or piped templates, and support attachments and inline images.
  • Account and workflow management: manage multiple accounts, configure IMAP/SMTP backends, use PTY mode for interactive wizards, and export structured JSON output for automation.
  • Use Case: Quickly search a client's inbox for recent proposals, export matching messages to JSON, and draft a templated reply with attachments for bulk sending.

Quick Start

Use the himalaya skill to list the latest 20 messages in the INBOX for the work account and return the output in JSON.

Frequently Asked Questions about himalaya

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage multiple IMAP and SMTP email accounts from the terminal?

You can manage multiple IMAP and SMTP email accounts from the terminal using the himalaya CLI. It requires a configured ~/.config/himalaya/config.toml file with your backend credentials to list, read, search, and organize messages across accounts.

Can I compose and send emails non-interactively via SMTP using a command line interface?

Yes, you can compose and send emails non-interactively via SMTP using the himalaya command line interface. It supports message composition through MML or piped templates, allowing you to draft, reply, forward, and send messages with attachments.

How do I parse and export terminal email client output for automation workflows?

To parse and export terminal email client output for automation, you can use the --output json flag with himalaya. This structures mailbox listings, message reads, and search results into JSON format, making it immediately consumable by automated workflows.

Do I need a specific terminal environment to use an interactive email CLI?

To use an interactive email CLI like himalaya, you need the himalaya binary installed and a configured config.toml file. Optional PTY mode is available if you require interactive editor sessions for message composition within your terminal environment.

What is the best way to search and filter large mailboxes from the command line?

The best way to search and filter large mailboxes from the command line is using himalaya's search and pagination features. You can search messages by sender or subject and paginate results directly via IMAP to efficiently locate specific emails.

Can I export raw MIME messages and attachments using a terminal email client?

Yes, you can export raw MIME messages and attachments using a terminal email client. Himalaya allows you to read and export raw MIME data directly from your IMAP backend, preserving original message structures and inline images for local processing.