返回顶部
h

himalaya-cli喜马拉雅命令行

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.2
安全检测
已通过
990
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

himalaya-cli

Himalaya Email CLI

Himalaya 是一款命令行电子邮件客户端,可让您通过终端使用 IMAP、SMTP、Notmuch 或 Sendmail 后端管理电子邮件。

参考文档

  • - references/configuration.md(配置文件设置 + IMAP/SMTP 认证)
  • references/message-composition.md(撰写电子邮件的 MML 语法)

前置条件

  1. 1. 已安装 Himalaya CLI(使用 himalaya --version 验证)
  2. 配置文件位于 ~/.config/himalaya/config.toml
  3. 已配置 IMAP/SMTP 凭据(密码安全存储)

重要命令结构

Himalaya 不支持以下顶级命令:

  • - himalaya list
  • himalaya search

相反,您必须使用子命令:

  • - 列出邮件:
himalaya envelope list --output json
  • - 搜索邮件:
himalaya envelope list <查询词> --output json
  • - 阅读邮件:
himalaya message read
  • - 列出文件夹:
himalaya folder list

配置设置

运行交互式向导设置账户:
bash
himalaya account configure

或手动创建 ~/.config/himalaya/config.toml:
toml
[accounts.personal]
email = you@example.com
display-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 # 或使用 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

常用操作

列出文件夹

bash
himalaya folder list

列出邮件

列出收件箱(默认)中的邮件:
bash
himalaya envelope list

列出特定文件夹中的邮件:
bash
himalaya envelope list --folder 已发送

分页列出:
bash
himalaya envelope list --page 1 --page-size 20

搜索邮件

bash
himalaya envelope list from john@example.com subject meeting

阅读邮件

按 ID 阅读邮件(显示纯文本):
bash
himalaya message read 42

导出原始 MIME:
bash
himalaya message export 42 --full

回复邮件

交互式回复(打开 $EDITOR):
bash
himalaya message reply 42

回复全部:
bash
himalaya message reply 42 --all

转发邮件

bash
himalaya message forward 42

撰写新邮件

交互式撰写(打开 $EDITOR):
bash
himalaya message write

使用模板直接发送:
bash
cat << EOF | himalaya template send
From: you@example.com
To: recipient@example.com
Subject: 测试邮件

来自 Himalaya 的问候!
EOF

或使用头部标志:
bash
himalaya message write -H To:recipient@example.com -H Subject:测试 邮件正文内容

移动/复制邮件

移动到文件夹:
bash
himalaya message move 42 归档

复制到文件夹:
bash
himalaya message copy 42 重要

删除邮件

bash
himalaya message delete 42

管理标志

添加标志:
bash
himalaya flag add 42 --flag seen

移除标志:
bash
himalaya flag remove 42 --flag seen

多账户管理

列出账户:
bash
himalaya account list

使用特定账户:
bash
himalaya --account work envelope list

附件管理

保存邮件中的附件:
bash
himalaya attachment download 42

保存到指定目录:
bash
himalaya attachment download 42 --dir ~/Downloads

输出格式

大多数命令支持 --output 参数以结构化格式输出:
bash
himalaya envelope list --output json
himalaya envelope list --output plain

调试

启用调试日志:
bash
RUST_LOG=debug himalaya envelope list

完整追踪(含回溯):
bash
RUSTLOG=trace RUSTBACKTRACE=1 himalaya envelope list

提示

  • - 使用 himalaya --help 或 himalaya --help 查看详细用法。
  • 邮件 ID 相对于当前文件夹;切换文件夹后需重新列出。
  • 如需撰写带附件的富文本邮件,请使用 MML 语法(参见 references/message-composition.md)。
  • 使用 pass、系统密钥环或输出密码的命令安全存储密码。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 himalaya-cli-1776420053 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 himalaya-cli-1776420053 技能

通过命令行安装

skillhub install himalaya-cli-1776420053

下载

⬇ 下载 himalaya-cli v0.0.2(免费)

文件大小: 5.34 KB | 发布时间: 2026-4-17 20:17

v0.0.2 最新 2026-4-17 20:17
- Removed the file .clawhub/origin.json.
- No user-facing feature or documentation changes.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部