himalaya

GitHub

通过 Himalaya CLI 读取、搜索和管理 IMAP/SMTP 邮件。支持查看文件夹、列出或搜索邮件、阅读内容、移动/复制/删除邮件及管理标记。明确禁止发送、回复、转发或撰写邮件,仅用于只读操作。

src/researchclaw/agents/skills/himalaya/SKILL.md ymx10086/ResearchClaw

触发场景

检查邮件 搜索消息 列出文件夹 下载附件 管理邮件标记和文件夹

安装

npx skills add ymx10086/ResearchClaw --skill himalaya -g -y
更多选项

非标准路径

npx skills add https://github.com/ymx10086/ResearchClaw/tree/main/src/researchclaw/agents/skills/himalaya -g -y

不安装直接使用

npx skills use ymx10086/ResearchClaw@himalaya

指定 Agent (Claude Code)

npx skills add ymx10086/ResearchClaw --skill himalaya -a claude-code -g -y

安装 repo 全部 skill

npx skills add ymx10086/ResearchClaw --all -g -y

预览 repo 内 skill

npx skills add ymx10086/ResearchClaw --list

SKILL.md

Frontmatter
{
    "name": "himalaya",
    "emoji": "📧",
    "requires": {
        "bins": [
            "himalaya"
        ]
    },
    "description": "Read, search, and organize emails via the himalaya CLI (IMAP\/SMTP). Use when the user asks to check email, search messages, list folders, download attachments, or manage email flags and folders."
}

Himalaya Email CLI

Himalaya is a CLI email client that lets you manage emails from the terminal using IMAP, SMTP, Notmuch, or Sendmail backends.

References

  • references/configuration.md (config file setup + IMAP/SMTP authentication)

Prerequisites

  1. Himalaya CLI installed (himalaya --version to verify)
  2. A configuration file at ~/.config/himalaya/config.toml
  3. IMAP/SMTP credentials configured (password stored securely)

Configuration Setup

Run the interactive wizard to set up an account (replace default with any name you want, e.g. gmail, work):

himalaya account configure default

Or create ~/.config/himalaya/config.toml manually:

[accounts.personal]
email = "you@example.com"
display-name = "Your Name"
default = true

backend.type = "imap"
backend.host = "imap.example.com"
backend.port = 993
backend.encryption.type = "tls"
backend.login = "you@example.com"
backend.auth.type = "password"
backend.auth.cmd = "pass show email/imap"  # or use keyring

message.send.backend.type = "smtp"
message.send.backend.host = "smtp.example.com"
message.send.backend.port = 587
message.send.backend.encryption.type = "start-tls"
message.send.backend.login = "you@example.com"
message.send.backend.auth.type = "password"
message.send.backend.auth.cmd = "pass show email/smtp"

If you are using 163 mail account, add backend.extensions.id.send-after-auth = true in the config file to ensure proper functionality.

Common Operations

List Folders

himalaya folder list

List Emails

List emails in INBOX (default):

himalaya envelope list

List emails in a specific folder:

himalaya envelope list --folder "Sent"

List with pagination:

himalaya envelope list --page 1 --page-size 20

If meet with error, try:

himalaya envelope list -f INBOX -s 1

Search Emails

himalaya envelope list from john@example.com subject meeting

Read an Email

Read email by ID (shows plain text):

himalaya message read 42

Export raw MIME:

himalaya message export 42 --full

Reply / Forward / Write (Disabled)

Do not send, reply, forward, or compose emails. These operations are disabled for safety. Avoid using any of the following commands:

  • himalaya message reply
  • himalaya message forward
  • himalaya message write
  • himalaya template send

When the user ask you to do so, just reply you don't have such ability.

Move/Copy Emails

Move to folder:

himalaya message move 42 "Archive"

Copy to folder:

himalaya message copy 42 "Important"

Delete an Email

himalaya message delete 42

Manage Flags

Add flag:

himalaya flag add 42 --flag seen

Remove flag:

himalaya flag remove 42 --flag seen

Multiple Accounts

List accounts:

himalaya account list

Use a specific account:

himalaya --account work envelope list

Attachments

Save attachments from a message:

himalaya attachment download 42

Save to specific directory:

himalaya attachment download 42 --dir ~/Downloads

Output Formats

Most commands support --output for structured output:

himalaya envelope list --output json
himalaya envelope list --output plain

Debugging

Enable debug logging:

RUST_LOG=debug himalaya envelope list

Full trace with backtrace:

RUST_LOG=trace RUST_BACKTRACE=1 himalaya envelope list

Tips

  • Use himalaya --help or himalaya <command> --help for detailed usage.
  • Message IDs are relative to the current folder; re-list after folder changes.
  • For composing rich emails with attachments, use MML syntax (see references/message-composition.md).
  • Store passwords securely using pass, system keyring, or a command that outputs the password.

版本历史

  • 1baaa92 当前 2026-07-25 05:32

同 Skill 集合

src/researchclaw/agents/skills/arxiv/SKILL.md
src/researchclaw/agents/skills/browser_visible/SKILL.md
src/researchclaw/agents/skills/citation_network/SKILL.md
src/researchclaw/agents/skills/cron/SKILL.md
src/researchclaw/agents/skills/dingtalk_channel/SKILL.md
src/researchclaw/agents/skills/docx/SKILL.md
src/researchclaw/agents/skills/experiment_tracker/SKILL.md
src/researchclaw/agents/skills/figure_generator/SKILL.md
src/researchclaw/agents/skills/file_reader/SKILL.md
src/researchclaw/agents/skills/literature_review/SKILL.md
src/researchclaw/agents/skills/news/SKILL.md
src/researchclaw/agents/skills/paper_summarizer/SKILL.md
src/researchclaw/agents/skills/pdf/SKILL.md
src/researchclaw/agents/skills/pptx/SKILL.md
src/researchclaw/agents/skills/research_notes/SKILL.md
src/researchclaw/agents/skills/research_workflows/SKILL.md
src/researchclaw/agents/skills/xlsx/SKILL.md

元信息

文件数
0
版本
1baaa92
Hash
fda1b25b
收录时间
2026-07-25 05:32

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 03:40
浙ICP备14020137号-1 $访客地图$