返回顶部
f

fastmail-suiteFastmail集成套件

Secure, safe-by-default Fastmail integration (email, contacts, calendar) via JMAP + CalDAV. Use when you want to verify Fastmail setup, triage/search email, inspect threads, read/search contacts, view upcoming events, or (only when explicitly enabled) send email and create/reschedule/cancel calendar events. Designed for least-privilege tokens, redacted output by default, and explicit write enable switches.

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

fastmail-suite

Fastmail 套件

使用捆绑脚本(仅标准库)安全地与 Fastmail 交互。

快速开始

设置凭据/令牌:

bash

JMAP 令牌(邮件 + 联系人作用域)


export FASTMAIL_TOKEN=…

CalDAV 应用密码(日历)

export FASTMAILCALDAVUSER=you@yourdomain export FASTMAILCALDAVPASS=app-password

可选:脱敏输出(默认为 1)

export FASTMAIL_REDACT=1

验证设置:

bash
python3 skills/fastmail-suite/scripts/suite.py status

套件 CLI (v0.2)

状态/入门检查

bash
python3 skills/fastmail-suite/scripts/suite.py status

预期样式:

  • - 邮件 (JMAP): 正常 / 缺少令牌 / 认证失败
  • 日历 (CalDAV): 正常 / 缺少应用密码 / 认证失败
  • 联系人 (JMAP): 正常 / 缺少令牌 / 认证失败

收件箱分类

bash
python3 skills/fastmail-suite/scripts/suite.py triage today
python3 skills/fastmail-suite/scripts/suite.py triage last-7d

分类摘要:

  • - 主要发件人,
  • 需要操作的主题模式(invoice、bill、payment、due、confirm、action required、reminder……),
  • 针对 friends.tas.edu.au 和账单/付款类项目的重点提示。

搜索

bash
python3 skills/fastmail-suite/scripts/suite.py search from:billing@ subject:invoice last:7d
python3 skills/fastmail-suite/scripts/suite.py search has:attachment before:2026-02-01 tax
python3 skills/fastmail-suite/scripts/suite.py search after:2026-02-01 reminder

支持的查询标记:

  • - from:foo
  • subject:bar
  • has:attachment
  • last:7d(以及其他 Nd 格式)
  • before:YYYY-MM-DD
  • after:YYYY-MM-DD
  • 裸词 → 主题/正文文本搜索

会话摘要

bash
python3 skills/fastmail-suite/scripts/suite.py thread
python3 skills/fastmail-suite/scripts/suite.py thread
python3 skills/fastmail-suite/scripts/suite.py thread school invoice

显示简洁的会话摘要:

  • - 参与者,
  • 大致时间线,
  • 最新 1–2 条消息及简短纯文本摘要。

其他现有脚本

邮件 (JMAP)

bash
python3 skills/fastmail-suite/scripts/fastmail.py mail inbox --limit 20
python3 skills/fastmail-suite/scripts/fastmail.py mail search invoice --limit 10
python3 skills/fastmail-suite/scripts/fastmail.py mail read

联系人 (JMAP)

bash
python3 skills/fastmail-suite/scripts/fastmail.py contacts list --limit 20
python3 skills/fastmail-suite/scripts/fastmail.py contacts search alice --limit 5
python3 skills/fastmail-suite/scripts/fastmail.py contacts get

日历 (CalDAV)

bash
python3 skills/fastmail-suite/scripts/fastmail.py calendar calendars
python3 skills/fastmail-suite/scripts/fastmail.py calendar upcoming --days 7

安全与凭据(重要)

Fastmail 套件使用真实的 Fastmail 凭据,因此设计上刻意保守。

必需

  • - FASTMAIL_TOKEN — Fastmail JMAP API 令牌(邮件 + 联系人作用域)。最佳实践是使用只读令牌进行常规操作。

可选但支持

  • - FASTMAILTOKENSEND — 单独的 JMAP 令牌,具有邮件提交作用域,用于发送邮件。仅在显式启用写入时使用。
  • FASTMAILCALDAVUSER / FASTMAILCALDAVPASS — 用于日历(CalDAV)的 Fastmail 应用密码。
  • FASTMAILREDACT — 控制输出的脱敏(默认 1 = 脱敏)。
  • FASTMAILENABLE_WRITES — 设置为 1 时,启用写入操作(发送/移动/更新)。省略或设置为 0 以保持只读。

安全模型

  • - 脱敏默认开启
输出默认脱敏,除非在支持的地方传递 --raw。FASTMAIL_REDACT=1 为默认值。
  • - 写入默认关闭
除非 FASTMAILENABLEWRITES=1 并且 已提供适当的令牌(例如用于发送邮件的 FASTMAILTOKENSEND),否则该技能不会发送/移动/更新任何内容。
  • - 角色分离
您可以保持严格分离: - 邮件读取: FASTMAIL_TOKEN - 邮件发送: FASTMAILTOKENSEND(可选,仅在启用写入时使用) - 日历: FASTMAILCALDAVUSER + FASTMAILCALDAVPASS(Fastmail 应用密码)
  • - 完全支持只读模式
您可以使用只读 JMAP 令牌 + 日历应用密码运行整个套件(状态、分类、搜索、会话、联系人、日历读取),无需启用写入。

更新日志

v0.1.1

  • - 联系人命令(list、search、get)已针对真实 Fastmail 账户进行测试。
  • suite.py status 现在通过 JMAP 探测联系人并报告 联系人 (JMAP) 健康状态。

v0.2

  • - 新增 scripts/suite.py,包含针对 JMAP + CalDAV 的入门 status 检查。
  • 新增邮件工作流:
- triage today - triage last-7d - search ,带标记解析器(from:、subject:、has:attachment、last:、before:、after:) - thread 会话摘要
  • - 在 scripts/fastmail.py 中为 suite ... 添加包装传递。
  • 添加状态/分类/搜索/会话的快速开始和使用示例。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 fastmail-suite-1776299448 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 fastmail-suite-1776299448 技能

通过命令行安装

skillhub install fastmail-suite-1776299448

下载

⬇ 下载 fastmail-suite v0.1.4(免费)

文件大小: 22.93 KB | 发布时间: 2026-4-16 18:02

v0.1.4 最新 2026-4-16 18:02
- Expanded "Security model" section to a more detailed "Security & Credentials" section.
- Clarified and reorganized credential/environment variable requirements and recommendations.
- Emphasized support for strict read-only mode and separation of credential roles.
- No functional/code changes—documentation update only.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部