命令行邮件管理工具

SKILL效率

原名 ymailink

效率 未标注权限 许可证不明确 已核验
安装这个技能

在终端里收发和管理邮件,支持 IMAP/SMTP、Outlook、Gmail 与 Exchange 等多种后端,还能用 AI 做邮件摘要和快速回复,适合习惯命令行办公的人。

一句话选型结论

按资料字段整理

命令行邮件管理工具是效率类的 Agent Skill,安装方式:ClawHub 市场,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类效率 安装方式ClawHub 市场 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

ClawHub 市场
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_a15cc76a/ymailink
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

效率
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_a15cc76a仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式ClawHub 市场安装包 clawhub
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-11-06上游最后核验时间 · 数据更新 2026-11-06
正文体量13.0 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

0 项能力
上游给出的能力概览与适用场景
终端查看收发邮件AI 生成邮件摘要快速起草回复

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
整理待办与日程

把零散任务收进清单,排出优先级。

批量处理重复任务

把固定动作做成模板,重复执行。

把流程写成清单

把口头流程整理成可复用的步骤。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 已做过站内核验,页面字段与仓库对得上。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在效率场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
命令行邮件管理工具当前 未标注权限 ClawHub 市场 未标注 未标注 有
Nano PDF 文档 联网访问 ClawHub 市场 424.9 万 OpenClaw 有
自动更新程序 浏览器控制 ClawHub 市场 296.4 万 OpenClaw 有
Gemini 助手 联网访问 ClawHub 市场 254.7 万 OpenClaw 有
word DOCX 文档 联网访问 ClawHub 市场 239.6 万 OpenClaw 有
Excel XLSX 前端 联网访问 ClawHub 市场 227.0 万 OpenClaw 有

SKILL.md 全文

13.0 KB
模型实际读到的说明书原文,来自技能仓库

ymailink Email CLI

ymailink is a Python CLI email client (v0.1.0) for managing emails from the terminal. It supports four backends:

Backend Read Send Auth
IMAP imapclient — password (raw/cmd/keyring)
SMTP — aiosmtplib password (raw/cmd/keyring)
Outlook (Graph API) httpx + msal httpx + msal OAuth2 (device flow)
Gmail (Google API) google-api-python-client google-api-python-client OAuth2 (local server)
Exchange exchangelib exchangelib password (auto/NTLM/basic)

Installation

Before using any ymailink commands, always verify ymailink is installed first. Run which ymailink or ymailink --version. If not installed, guide the user to run:

pip install git+https://github.com/lizhisec/ymailink.git

To install with optional dependencies (for specific backends or AI features):

# Install with all optional dependencies
pip install "git+https://github.com/lizhisec/ymailink.git#egg=ymailink[all]"

# Or install specific extras
pip install "git+https://github.com/lizhisec/ymailink.git#egg=ymailink[outlook,gmail,keyring,exchange,ai]"

If GitHub is inaccessible, use Gitee mirror as the git source:

pip install git+https://gitee.com/w3hsec/ymailink.git
# With optional dependencies
pip install "git+https://gitee.com/w3hsec/ymailink.git#egg=ymailink[all]"

Prerequisites

  1. Python 3.11+ installed.
  2. ymailink installed (see Installation section above).
  3. A configuration file at ~/.config/ymailink/config.toml (or custom path via -c).
  4. IMAP/SMTP credentials, OAuth2 app registration, or Exchange server details.
  5. For AI features (ymailink ai ...): an API key configured under [ai] in config (see references/configuration.md).

Quick Reference — All Commands

Seven command groups, 27 subcommands:

account — Manage accounts

Subcommand Action
account list List configured accounts
account doctor Diagnose account connection
account configure Run interactive wizard (prints config to stdout — copy-paste to ~/.config/ymailink/config.toml)

folder — Manage folders

Subcommand Action
folder list List all folders (shows count + unread — IMAP omits these)
folder add <name> Create folder
folder delete <name> Delete folder
folder expunge <name> Permanently remove deleted messages (IMAP only; Outlook/Gmail/Exchange are no-ops)
folder purge <name> Delete ALL messages in folder (batched 500 at a time)

mail — Manage messages

Subcommand Action
mail list [-f FOLDER] [-p PAGE] [-s SIZE] [-q QUERY] List messages (default INBOX, page 1, size 20). Search syntax depends on backend.
mail thread <id> [-f FOLDER] View a single message by ID (fetches one message, not a full thread)
mail read <id> [-f FOLDER] Read message body (marks as SEEN)
mail write [--headers K:V ...] Interactive compose via $EDITOR (or vi if unset)
mail send [raw] Send raw message from file or stdin
mail reply <id> [-f FOLDER] [--all] Reply to message (reply-all with --all)
mail forward <id> [-f FOLDER] Forward message
mail copy <ids...> -t TARGET [-f FOLDER] Copy messages to target folder
mail move <ids...> -t TARGET [-f FOLDER] Move messages to target folder
mail delete <ids...> [-f FOLDER] Delete messages (IMAP: hard delete via EXPUNGE; Gmail: moves to trash)

flag — Manage message flags

Subcommand Action
flag add <ids...> -g FLAGS... [-f FOLDER] Add flags
flag set <ids...> -g FLAGS... [-f FOLDER] Replace all flags
flag remove <ids...> -g FLAGS... [-f FOLDER] Remove flags

Valid flags: seen, answered, flagged, deleted, draft (case-insensitive)

attachment — Download attachments

Subcommand Action
attachment download <id> [-f FOLDER] [-d DIR] Download attachments. Directory: --dir → account config → global config → ~/Downloads

Note: Only IMAP backends provide attachment binary data. Outlook/Gmail/Exchange backends report metadata (name, size) but cannot download the actual file bytes yet.

template — Programmatic message composition

Subcommand Action
template write Generate blank compose template → stdout
template reply <id> [-f FOLDER] [--all] Generate reply template → stdout
template forward <id> [-f FOLDER] Generate forward template → stdout
template save [raw] Save template as draft (reads from file or stdin)
template send [raw] Send template from file or stdin

ai — AI-powered email operations

Subcommand Action
ai short-summary <id> [-f FOLDER] One-line email summary
ai summary <id> [-f FOLDER] Detailed email summary
ai rapid-reply <id> [-f FOLDER] Quick reply suggestions (3)

Note: AI features require [ai] section in config (see references/configuration.md) and the ai extra: pip install ymailink[ai]. All three commands fetch the target email, send it to the AI API (https://ai.ymailink.com), and print the result.

Global Flags

Flag Description
-c, --config Config file path (repeatable for deep merge)
-o, --output Output format: plain (default) or json
-a, --account Account name (defaults to configured default account)
-q, --quiet Suppress non-error log output (does not suppress command output)
--debug Enable debug logging
-V, --version Show version (ymailink 0.1.0)

Configuration Setup

Interactive wizard

ymailink account configure

This prompts for account details and prints the resulting TOML config to stdout. It does not write the file — you need to copy-paste the output to ~/.config/ymailink/config.toml.

See references/configuration.md for manual config setup with all backend types (IMAP/SMTP, Outlook, Gmail, Gmail-via-IMAP, Exchange), password auth methods (raw/cmd/keyring), OAuth2 token management, folder aliases, signatures, download directories, and proxy support.

Common Workflows

List and read emails

# List INBOX
ymailink mail list

# Search
ymailink mail list --query "from:john@example.com subject:meeting"

# Paginate
ymailink mail list --page 2 --page-size 10

# Switch folder
ymailink mail list --folder "Sent"

# Read a message
ymailink mail read 42

# JSON output for scripting
ymailink --output json mail list

Compose and send

# Interactive compose (opens $EDITOR)
ymailink mail write
ymailink mail write --headers "To:user@example.com" --headers "Subject:Hello"

# Send raw message from file
ymailink mail send message.txt

# Pipe to send
cat message.txt | ymailink mail send

Programmatic template workflow

# Generate a blank template, edit, send
ymailink template write > msg.txt
vim msg.txt
ymailink template send msg.txt

# Or pipe directly
ymailink template write | cat - msg_body.txt | ymailink template send

Reply and forward

# Reply (opens editor)
ymailink mail reply 42

# Reply to all
ymailink mail reply 42 --all

# Forward
ymailink mail forward 42

Organize messages

# Move message(s) to folder
ymailink mail move 42 --target "Archive"
ymailink mail move 42 43 44 --target "Archive" --folder INBOX

# Copy message(s)
ymailink mail copy 55 56 --target "Important"

# Delete message(s)
ymailink mail delete 42
ymailink mail delete 42 43 44 --folder INBOX

# Flag messages
ymailink flag add 42 --flags seen --flags flagged
ymailink flag set 42 --flags answered
ymailink flag remove 42 --flags flagged

Manage folders

ymailink folder list
ymailink folder add "Archive"
ymailink folder delete "Old Folder"
ymailink folder expunge "Trash"
ymailink folder purge "Junk"

AI-powered email operations

# One-line summary of an email
ymailink ai short-summary 42

# Detailed summary
ymailink ai summary 42

# Quick reply suggestions (3 options)
ymailink ai rapid-reply 42

# Specify a different folder
ymailink ai short-summary 42 --folder INBOX
ymailink ai summary 42 --folder "Sent"
ymailink ai rapid-reply 42 --folder "Archive"

Download attachments

ymailink attachment download 42
ymailink attachment download 42 --folder INBOX --dir ~/Downloads

Multiple Accounts

# List configured accounts
ymailink account list

# Switch accounts
ymailink --account work mail list
ymailink --account personal mail list

Message Composition

ymailink uses standard RFC 822 format. See references/message-composition.md for the full reference covering: headers, address formats, plain text bodies, reply/forward quoting, interactive compose, file/stdin send, and template workflows.

A minimal message looks like:

From: You <you@example.com>
To: recipient@example.com
Subject: Hello

Message body here.

Default Behavior

Running ymailink with no arguments is equivalent to:

ymailink mail list --folder INBOX --page 1 --page-size 20

Tips & Nuances

  • Message IDs are folder-scoped (IMAP UIDs). Re-list after changing folders.
  • Plural aliases work for all command groups: accounts, folders, flags, attachments, templates. (Not mail.)
  • mail write uses $EDITOR or $VISUAL, falling back to vi. The temp file uses the .eml suffix. If no changes are detected, the message is not sent.
  • mail reply / mail forward also detect unchanged content and abort sending.
  • mail read --html flag exists in the CLI but currently has no effect — the text body is always shown.
  • Gmail delete moves to trash (not a hard delete). Use the Gmail web interface or API to permanently delete.
  • IMAP delete is hard: sets \Deleted + EXPUNGE, permanently removing messages.
  • Folder counts (count, unread) are only populated by Outlook, Gmail, and Exchange backends — IMAP does not fetch them.
  • Store passwords securely using pass, system keyring (pip install ymailink[keyring]), or a command that outputs the password. Plaintext passwords in config are for testing only.
  • AI features require pip install ymailink[ai] and an [ai] section in config with an api-key. The default AI endpoint is https://ai.ymailink.com.
  • OAuth2 tokens are cached in ~/.config/ymailink/tokens/{provider}_{account}.json (chmod 0600). Delete the file to force re-authorization.
  • Proxy support for Outlook and Gmail backends: set HTTPS_PROXY or https_proxy environment variable.
  • Account not found errors produce unhandled exceptions. Verify account names with ymailink account list.
  • Config file not found returns an empty config (no error). Commands will fail with "No accounts configured" rather than a file-not-found error.
  • --quiet only suppresses log() output (dimmed stderr). It does not suppress command output (table/JSON on stdout) or error messages.

References

  • references/configuration.md — Full config setup: IMAP/SMTP/Outlook/Gmail/Exchange auth, AI config, password methods, OAuth2, folder aliases, signatures, proxy
  • references/message-composition.md — RFC 822 format, headers, address formats, reply/forward quoting, compose workflows

Debugging

# Enable debug logging
ymailink --debug mail list

# Diagnose connection issues
ymailink account doctor

# Suppress non-error output
ymailink --quiet mail list

# Check version
ymailink --version

Help

ymailink --help
ymailink mail list --help
ymailink flag add --help

常见问题

5 问
答案由本站依据条目字段整理
命令行邮件管理工具怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_a15cc76a/ymailink。安装方式为ClawHub 市场。装完刷新技能列表或重开客户端。

命令行邮件管理工具支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

命令行邮件管理工具权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

命令行邮件管理工具收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

命令行邮件管理工具用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-11-06。