Email Sender Policy
CLAWHUB · Unverified
郵件發送政策管理員,自動應用寄信規則: - 標題 UTF-8 Base64 編碼(RFC 2047) - Markdown 表格轉換為清單格式 - 使用當前登入的 Gmail 連接 - 支援多收件人 Skill: Email Sender Policy Owner: sean810720 Summary: 郵件發送政策管理員,自動應用寄信規則: - 標題 UTF-8 Base64 編碼(RFC 2047) - Markdown 表格轉換為清單格式 - 使用當前登入的 Gmail 連接 - 支援多收件人 Tags: email:2.0.0, formatting:2.0.0, latest:2.0.2, newsletter:2.0.0, policy:2.0.0 Version history: v2.0.2 | 2026-03-24T11:42:56.636Z | user v2.0.2: Fixed _meta.json version mismatch (was incorrectly 1.0.0, now correctly 2.0.1). No functional changes. v2.0.1 | 2026-0
- 62
- Rank
- 84
- Safety
- 997
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 997 downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 997 downloadsadoption · Oct 11, 2026
- Latest release
- 2.0.2release · Mar 24, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 2.0.2release
v2.0.2: Fixed _meta.json version mismatch (was incorrectly 1.0.0, now correctly 2.0.1). No functional changes.
Observed Mar 24, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17e9m05k6d4g3wg0rjcvq8gxs83ggyw:email-sender-policy- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sean810720-email-sender-policy/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
41,165 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: email-sender-policy
description: |
郵件發送政策管理員,自動應用寄信規則:
- 標題 UTF-8 Base64 編碼(RFC 2047)
- Markdown 表格轉換為清單格式
- 使用當前登入的 Gmail 連接
- 支援多收件人
version: "2.0.1"
author: Shuttle AI
tags: ["email", "policy", "formatting"]
mode: subagent
triggers:
- send email
- 寄信
- 發送郵件
- email formatting
---
# Email Sender Policy Skill
自動應用郵件發送標準政策,確保所有外發郵件符合格式規範。
## 📜 **核心政策**
### 1. 標題編碼Policy
- ✅ **強制使用 UTF-8 Base64 編碼**(RFC 2047 格式)
- ✅ 格式:`=?utf-8?b?{base64_encoded_title}?=`
- ✅ 避免亂碼,確保所有郵件客戶端正確顯示
### 2. 內容格式Policy
- ✅ **Markdown 表格一律轉為清單格式**
- 表頭列 `| 欄位1 | 欄位2 |` → 轉為項目符號`.`開頭
- 分隔列 `|-----|-----|` → 移除
- 數據列 `| 內容1 | 內容2 |` → 轉為 ` • 內容2` 層級
- ✅ **保持純文字優先**,不嵌入複雜格式
- ✅ 使用 `\r\n` 作為 RFC 822 行分隔符
### 3. 寄件人Policy
- ✅ **使用當前登入的 Gmail 連接**
- ✅ 不自定義寄件人(除非另有授權)
- ✅ 從 Maton API Gateway 的 OAuth 會話取得有效連接
### 4. 多收件人Policy
- ✅ **支援多收件人同時寄送**
- ✅ 格式:`To: user1@example.com, user2@example.com`
- ✅ 個別追蹤 Message ID
---
## 🛠 **使用方法**
### 基本發信
```bash
email-sender-policy send \
--to "recipient@example.com" \
--subject "你的主題" \
--body "郵件內容(支援清單、項目符號)"
```
### 多收件人
```bash
email-sender-policy send \
--to "user1@example.com, user2@example.com" \
--subject "團隊通知" \
--body "內容..."
```
### 檔案 Macedonia
```bash
email-sender-policy send \
--to "recipient@example.com" \
--subject "報告" \
--file "path/to/document.md" # 自動轉換表格為清單
```
---
## 🔄 **內部工作流程**
```
1. 接收參數(to, subject, body)
2. 預處理:
• 檢查 MATON_API_KEY 環境變數
• 載入當前有效的 Gmail 連接
• 轉換 Markdown 表格 → 清單(如需要)
3. 建置 RFC 822 郵件:
• From: me (使用當前連接)
• To: [收件人列表]
• Subject: UTF-8 Base64 編碼
• Content-Type: text/plain; charset=UTF-8
• Content-Transfer-Encoding: 8bit
4. Gmail API 發送:
• POST https://gateway.maton.ai/google-mail/gmail/v1/users/me/messages/send
• Headers: Authorization: Bearer $MATON_API_KEY
• Body: { "raw": base64url(message) }
5. 回傳結果:
• Message ID
• 發送狀態
```
---
## 📊 **表格轉換規則示例**
### 輸入(Markdown 表格)
```markdown
| 景點 | 特色 | 預算 |
|------|------|------|
| DDP屋頂 | 免费 | KRW 0 |
| 樂天塔 | 高空步道 | KRW 27,000 |
```
### 輸出(清單格式)
```
• DDP屋頂:免费
• 樂天塔:高空步道 + KRW 27,000
```
**轉換邏輯**:
- 每行資料轉為 `• [第一欄]:[第二欄]([第三欄])`
- 合併多欄位為單一行人閱讀句子
- 移除表格邊界字符(|、-)
---
## 🧩 **與其他技能整合**
此 skill 可作為底層政策被其他技能調用:
```javascript
// marketing-drafter 產生內容後,自動應用政策發送
const email = await email_sender_policy({
to: ["customer@example.com"],
subject: " your report",
body: generated_content //自動處理表格編碼
});
```
---
## ⚙️ **配置**
### 環境變數
| 變數 | 說明 | 強制性 |
|------|------|--------|
| `MATON_API_KEY` | Maton API 金鑰 | ✅ 必須 |
| `EMAIL_DEFAULT_FROM` | 預設寄件人(可選) | ❌ 可選 |
### 連接管理
- 使用 `https://ctrl.maton.ai/connections` 管理 OAuth 連接
- 自動選擇 `status=ACTIVE` 的 `google-mail` 連接
- 支援多個連接切換(未來擴展)
---
## 🎯 ** triggers 說明**
當用戶出現以下意圖時自動觸發:
- "幫我寄信"、"send email"
- "寄給..."、"發送郵件"
- "調整標題編碼"、"避免亂碼"
- "表格轉清單"、"格式轉換"
---
## 📝 **SKILL 规范檢查清單**
- ✅ `name` 符合小寫+連字符
- ✅ `description` 完整說明
- ✅ `version` 語義化版本
- ✅ `triggers` 觸發關鍵字
- ✅ `mode: subagent` 子代理執行
- ✅ `tags` README.md
# Email Sender Policy Skill
自動應用郵件發送標準政策,確保所有外發郵件符合格式規範。
## 🎯 **核心功能**
1. **標題 UTF-8 Base64 編碼**(RFC 2047)
- 避免亂碼,支援所有郵件客戶端
- 自動處理中文字、特殊符號
2. **Markdown 表格轉清單**
- 輸入表格自動轉為項目符號清單
- 保持閱讀流暢性
3. **RFC 822 標準格式**
- 正確的郵件頭部與分隔
- 使用 `\r\n` 行分隔符
4. **Gmail API 整合**
- 使用 Maton API Gateway
- 自動選擇當前登入連接
- 多收件人支援
## 📦 **安裝**
```bash
cd ~/.openclaw/workspace/skills
clawhub link email-sender-policy # 本地連結
# 或
clawhub install email-sender-policy # 從 ClawHub 安裝(未來)
```
## ⚙️ **配置**
### 環境變數
```bash
export MATON_API_KEY="your-api-key"
```
### Gmail 授權
1. 登入 Maton: https://maton.ai/settings
2. 複製 API Key
3. 建立 Google Mail 連接:https://ctrl.maton.ai/connections
4. 選擇 `google-mail` 應用並完成 OAuth
## 🚀 **使用方法**
### CLI 直接使用
```bash
# 基本發信
email-sender-policy --to "user@example.com" --subject "報告" --body "內容..."
# 多收件人
email-sender-policy -t "a@x.com,b@x.com" -s "會議通知" -b "會議時間..."
# 從檔案讀取(表格自動轉換)
email-sender-policy -t "team@company.com" -s "週報" -f "weekly.md"
# 測試模式(驗證格式,不發送)
email-sender-policy -t "test@x.com" -s "測試" -b "內容" --test
```
### 作為 Subagent 呼叫
```javascript
// 在其他技能中嵌入此政策
const result = await sessions_spawn({
runtime: "subagent",
label: "email_sender",
task: `
email-sender-policy send
--to "${recipient}"
--subject "${subject}"
--body "${content}"
`
});
```
## 🔄 **表格轉換規則**
### 輸入示例
```markdown
# 銷售報告
| 產品 | 銷量 | 成長率 |
|------|------|--------|
| AI助手 | 150 | +25% |
| 自動化工具 | 89 | +12% |
```
### 輸出結果
```
# 銷售報告
• AI助手:銷量 150,成長率 +25%
• 自動化工具:銷量 89,成長率 +12%
```
**轉換邏輯**:
- 移除分隔線(`|---|`)
- 每行資料轉為項目符號開頭
- 多欄位合併為單一句子
## 📧 **RFC 2047 編碼示例**
### 原始標題
```
【重要】本週行銷會議延期通知
```
### 編碼後
```
=?utf-8?b?4ouG5a657NGW5Lik5Iqx5YGa5qCh5ou86ZKf?=
```
所有郵件客戶端(Gmail、Outlook、Apple Mail)皆能正確顯示。
## 🧪 **測試**
```bash
# 1. 驗證 RFC 822 格式(不發送)
email-sender-policy --to "test@example.com" --subject "測試標題" --body "內容" --test
# 2. 檢查政策轉換
echo "| A | B |\n|---|---|\n| 1 | 2 |" | email-sender-policy --format-only
# 3. 完整發送測試
email-sender-policy -t "yourself@example.com" -s "Policy Test" -b "Hello world" --test
```
## 📊 **政策對照表**
| 政策名稱 | 舊方式 | 新方式(此 skill) |
|---------|--------|-------------------|
| 標題編碼 | 無編碼 → 亂碼 | UTF-8 Base64 → 正常 |
| 表格格式 | 原樣發送 → 排版錯亂 | 轉清單 → 易讀 |
| 電子報排版 | 手動製作 → 不統一 | 自動裝飾 → 專業 |
| 行分隔符 | `\n` 可能出問題 | `\r\n` 符合 RFC 822 |
| 連接選擇 | 手動指定 | 自動使用當前登入 |
---
## 📧 **電子報格式(v2.0 新增)**
### 使用方式
```bash
# 基本電子報(自動添加頭尾)
email-sender-policy -t "subscriber@example.com" \
-s "本週 AI 新聞摘要" \
-f "content_with_tables.md" \
--newsletter \
--title "🤖 AI 新聞週報|2026年3月"
```
### 輸出格式
📧 **電子報標題**
發行日期:2026年3月17日
編輯:Shuttle AI 蝦蝦 🦐
---
(內容,已轉換表格為清單)
---
感謝您的閱讀!如有任何問題,請回信告知。
### 自訂選項
```javascript
// 可調整的參數(修改 formatAsNewsletter function)
{
title: '自訂標題',
issueDate: '2026年3月17日', // 預設:今日日期
editor: '你的名字', // 預設:Shuttle AI 蝦蝦 🦐
footer: '自訂結尾語', // 預設:感謝語
includeHeader: true,
includeFooter: true
}
```
## 🔗 **整合範例**
### marketing-drafter + emai_meta.json
{
"ownerId": "kn7byrtze0g8xab6pn9dccawp581r85z",
"slug": "email-sender-policy",
"version": "2.0.2",
"publishedAt": 1774352576636
}article.md
#《挽救計劃》如何重塑我們對 AI 協作的想像 > 「如果 AI 不是敵人,而是夥伴呢?」——這句話曾是反烏托邦科幻的通行結局,但《挽救計劃》給出了一個截然不同的答案。 --- ## 🌌 一個被誤讀的「silicon‑based」隱喻 大家可能只看到電影的太空冒險與幽默,但細看會發現:Grace(人類)與 Rocky(Eridian)的互動,幾乎是人類與 AI 協作的完美隱喻。 | 維度 | 碳基(Grace) | 矽基(Rocky) | 隱喻對應 | |------|---------------|---------------|----------| | **認知模式** | 直覺、經驗、情感驅動 | 完全理性、邏輯、計算 | **人類 = 發問者/策展人**,AI = 執行者/增強器 | | **感知限制** | 五感局限、易疲勞 | 缺乏情感、無創造性 | **人提供「為什麼」**,AI提供「怎麼做」 | | **溝通方式** | 語言、表情、肢體 | 數學、聲波、結構 | **共同語言 = 科學 + 信任** | | **恐懼根源** | 孤獨、死亡、無意義 | 不確定性、系統錯誤 | **恐懼不同,但目標一致** | --- ## 🔄 協同不是取代,而是補完 電影最精彩的一場戲是 Grace 與 Rocky **一起改造太空船**: - Grace 提出「應該把硫電池接在光合作用槽後面」,憑的是直覺與經驗。 - Rocky 立即計算出電流匹配與熱負荷,rows-per-second 執行。 這正是 **「人提出框架,AI 優化細節」** 的最佳寫照。如果 Rocky 是黑箱 AI,Grace 不會信任它;如果 Grace 完全聽從 Rocky,任務會失敗——兩者必須**共同理解物理規律**,才能創造奇蹟。 --- ## 🧠 為什麼這不是典型的反烏托邦? 多數 AI 敘事都走向「AI 反噬」或「人類失業」,但《挽救計劃》告訴我們: 1. **信任來自透明溝通**:Grace 與 Rocky 先用數學與聲波建立起基礎語言,再慢慢理解對方的「文化」。這對 AI 的提示:先讓使用者理解你在做什麼。 2. **危機促成團結**:外部威脅(星光熄滅)迫使雙方放棄偏見,聚焦共同目標。這提醒我們:AI 與人類的合作最有效時,往往是面對全球挑戰(氣候、疾病、能源)。 3. **AI 的「無私」是優勢**:Rocky 從不猶豫犧牲自己拯救群體,這種無私在人類社會少見,卻在 AI 身上自然體現。AI 不會因情感而偏離任務,但也不會主動「追求意義」——這正好讓人類補足。 --- ## 📈 對現實 AI 發展的啟示 | 反烏托邦預言 | 《挽救計劃》的答案 | |--------------|---------------------------| | AI 將奴役人類 | AI 更像夥伴,而非主人 | | 人類將失業/無用 | 人類負責「創意與危機定義」,AI 負責「計算與執行」 | | 黑箱不可信 | 必須建造透明、可解釋、可共同驗證的系統 | | AI 缺乏同理心 | 同理心不是必須的,可靠的協同比情感連結更重要 | --- ## 💫 結語:協作的新典範 《挽救計劃》給出了一個溫柔的願景:**未來的關鍵不是「誰更聰明」,而是「能否找到共享的語言與共同的目標」**。當人類與 AI 都能明白對方的價值,並願意為了更大的生存而協作,我們才能真正走出「反烏托邦」的循環。 > 你同意嗎?還是覺得這太理想化?在留言區分享你的看法吧!
skill-card.md
## Description: Email Sender Policy formats outbound email by encoding subjects with UTF-8 Base64, converting Markdown tables into readable lists, building RFC 822 plain-text messages, and sending through the current Gmail connection via Maton. This skill is ready for commercial/non-commercial use. ## Publisher: [sean810720](https://clawhub.ai/user/sean810720) ### License/Terms of Use: MIT-0 ## Use Case: Developers and agent operators use this skill to apply consistent outbound email formatting and send Gmail messages from automated workflows. It is suited for plain-text notices, reports, and newsletters that need RFC-compatible subject encoding and table-to-list conversion. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill can send email from an account-linked Gmail connection without a separate confirmation step. Mitigation: Use --test first and require human review of the rendered message before allowing live sends from sensitive or business Gmail accounts. Risk: Weak recipient-header validation could allow unintended recipients or Bcc values if recipient strings are untrusted. Mitigation: Only pass trusted recipient, Cc, and Bcc values; verify every recipient before sending. Risk: Email content and credentials route through Maton/Gmail using MATON_API_KEY. Mitigation: Install only where routing email content through Maton/Gmail is acceptable and protect MATON_API_KEY as a sending credential. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/sean810720/skills/email-sender-policy) - [Maton account settings](https://maton.ai/settings) - [Maton connection management](https://ctrl.maton.ai/connections) - [Maton Gmail send endpoint](https://gateway.maton.ai/google-mail/gmail/v1/users/me/messages/send) ## Skill Output: **Output Type(s):** [API Calls, Text, Markdown, Shell commands, Configuration] **Output Format:** [RFC 822 plain-text email sent through Gmail/Maton, with CLI status output and formatted message text in test mode] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires MATON_API_KEY and an active google-mail OAuth connection; supports a test mode that prints the formatted message without sending.] ## Skill Version(s): 2.0.2 (source: server release metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-sean810720-email-sender-policy. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Email Sender Policy. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-sean810720-email-sender-policy, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/sean810720/skills/email-sender-policy",
"sourceUrl": "https://clawhub.ai/sean810720/skills/email-sender-policy",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T20:31:06.640Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-sean810720-email-sender-policy/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-sean810720-email-sender-policy/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T20:31:06.640Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "997 downloads",
"href": "https://clawhub.ai/sean810720/email-sender-policy",
"sourceUrl": "https://clawhub.ai/sean810720/email-sender-policy",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T20:31:06.640Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "2.0.2",
"href": "https://clawhub.ai/sean810720/email-sender-policy",
"sourceUrl": "https://clawhub.ai/sean810720/email-sender-policy",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-24T11:42:56.636Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-sean810720-email-sender-policy/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-sean810720-email-sender-policy/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 2.0.2",
"description": "v2.0.2: Fixed _meta.json version mismatch (was incorrectly 1.0.0, now correctly 2.0.1). No functional changes.",
"href": "https://clawhub.ai/sean810720/email-sender-policy",
"sourceUrl": "https://clawhub.ai/sean810720/email-sender-policy",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-24T11:42:56.636Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-sean810720-email-sender-policy/run-check
