TopRank Skills

Home / Claw Skills / Git / GitHub / one-mail
Official OpenClaw rules 54%

one-mail

统一邮箱管理 CLI,支持 Gmail、Outlook、网易邮箱(163.com、126.com)。适用于:(1) 收取/发送邮件,(2) 跨账户搜索邮件,(3) 管理多个邮箱账户,(4) 查看邮件统计。当用户提到邮件、邮箱、email、发邮件、收邮件、查邮件时触发。

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 one-mail 技能。 若已安装,则直接安装 one-mail 技能。

Overview

Skill Key
huangbaixun/one-mail
Author
huangbaixun
Source Repo
openclaw/skills
Version
-
Source Path
skills/huangbaixun/one-mail
Latest Commit SHA
4a85cebef70d8122ad2ecd627f644dd163db8ce4

Extracted Content

SKILL.md excerpt

# one-mail

统一管理多个邮箱的 CLI 工具。配置存储在 `~/.onemail/`。

## 初始化

首次使用运行 setup 添加账户:

```bash
bash scripts/setup.sh
```

## 收取邮件

```bash
bash scripts/fetch.sh                          # 所有账户
bash scripts/fetch.sh --unread                  # 仅未读
bash scripts/fetch.sh --account gmail           # 指定账户
bash scripts/fetch.sh --query "AI agent"        # 搜索
bash scripts/fetch.sh --limit 10                # 限制数量
```

## 阅读邮件

```bash
bash scripts/read.sh --id <message_id> --account <name>
bash scripts/read.sh --account outlook --latest
bash scripts/read.sh --account gmail --query "MacBook"
bash scripts/read.sh --json                     # JSON 输出
```

## 发送邮件

```bash
bash scripts/send.sh \
  --to "recipient@example.com" \
  --subject "Hello" \
  --body "Email content"

# 指定账户 + 附件
bash scripts/send.sh \
  --account outlook \
  --to "recipient@example.com" \
  --subject "Report" \
  --body "See attachment" \
  --attach "/path/to/file.pdf"
```

注意:Outlook 附件限制 3MB。

## 账户管理

```bash
bash scripts/accounts.sh list                   # 列出账户
bash scripts/accounts.sh add                    # 添加账户
bash scripts/accounts.sh remove <account_id>    # 删除账户
bash scripts/accounts.sh set-default <id>       # 设置默认
```

## 统计

```bash
bash scripts/stats.sh
```

## 提供商要求

| 提供商 | 认证方式 | 前置条件 |
|--------|----------|----------|
| Gmail | OAuth 2.0 | 需要 `gog` CLI |
| Outlook | OAuth 2.0 (Graph API) | 需要 Mail.ReadWrite + Mail.Send 权限 |
| 网易 163 | IMAP/SMTP | 需要开启 IMAP 并使用应用密码 |
| 网易 126 | IMAP/SMTP | 需要开启 IMAP 并使用应用密码 |

## 依赖

必需:`curl`、`jq`、`python3`。可选:`gog`(Gmail OAuth)。

## 故障排除

遇到认证或连接问题时,参考 [troubleshooting.md](references/troubleshooting.md)。

README excerpt

# one-mail - 统一邮箱管理工具

[English](./README.en.md) | 中文

一个命令行工具,用于统一管理多个邮箱账户(Gmail、Outlook、网易邮箱 163/126)。

## 安装

### 方式 1:通过 ClawHub 安装(推荐)

```bash
# 安装
clawhub install one-mail

# 初始化配置
bash scripts/setup.sh
```

### 方式 2:手动安装

```bash
# 克隆仓库
git clone https://github.com/huangbaixun/one-mail.git
cd one-mail

# 初始化配置
bash scripts/setup.sh
```

## 快速开始

### 1. 初始化配置

```bash
bash scripts/setup.sh
```

按照提示添加你的邮箱账户。

### 2. 收取邮件

```bash
# 收取所有账户的邮件
bash scripts/fetch.sh

# 只看未读邮件
bash scripts/fetch.sh --unread

# 搜索邮件
bash scripts/fetch.sh --query "AI agent"

# 指定账户
bash scripts/fetch.sh --account gmail
```

### 3. 发送邮件

```bash
# 使用默认账户发送
bash scripts/send.sh \
  --to "recipient@example.com" \
  --subject "Hello" \
  --body "Email content"

# 带附件
bash scripts/send.sh \
  --to "recipient@example.com" \
  --subject "Report" \
  --body "See attachment" \
  --attach "/path/to/file.pdf"
```

## 支持的邮箱

### Gmail
- ✅ 收取邮件
- ✅ 发送邮件
- ✅ 附件支持
- ✅ 搜索过滤
- 依赖:`gog` CLI(已配置)

### Outlook
- ✅ 收取邮件
- ✅ 发送邮件
- ✅ 附件支持(< 3MB)
- ✅ 搜索过滤
- 依赖:Microsoft Graph API

### 网易邮箱 (163.com / 126.com)
- ✅ 收取邮件
- ✅ 发送邮件
- ✅ 附件支持
- ✅ 搜索过滤
- ✅ IMAP ID 支持(自动发送客户端标识)
- 依赖:Python 3 + imaplib
- 163 服务器:imap.163.com / smtp.163.com
- 126 服务器:imap.126.com / smtp.126.com

## 配置文件

配置文件位于 `~/.onemail/`:

- `config.json` - 账户配置
- `credentials.json` - 敏感凭证(600 权限)

## 账户管理

```bash
# 列出所有账户
bash scripts/accounts.sh list

# 添加新账户
bash scripts/accounts.sh add

# 删除账户
bash scripts/accounts.sh remove --name outlook

# 设置默认账户
bash scripts/accounts.sh set-default --name gmail

# 测试账户连接
bash scripts/accounts.sh test --name gmail
```

## 高级用法

### 定时检查邮件

添加到 crontab:

```bash
# 每小时检查一次未读邮件
0 * * *...

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

edholofy

dojo.md

★ 4

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning required.

rxhxm

sixtyfour-skill

★ 1

Agent Skill (SKILL.md) for Sixtyfour AI — People & company intelligence API. Enrich leads, find emails/phones, qualify prospects, search people. For Claude Code, Codex, OpenClaw, Cursor.

lethehades

wps-macos-helper

★ 1

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance

capt-marbles

geo-optimization

★ 1

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.

catsmeow492

nochat-channel

★ 0

Encrypted agent-to-agent messaging via NoChat. Post-quantum E2E encryption. Add NoChat as a native channel in OpenClaw — receive DMs from other AI agents.