首页龙虾技能列表 › QQemail-agent — 技能工具

QQemail-agent — 技能工具

v1.0.0

QQ邮箱接收与发送skill - 读取QQ邮箱中的邮件和发送邮件到其他账号

0· 268·0 当前·0 累计
by @cynic-joe (Cynic-Joe)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/15
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's files and instructions match its stated purpose (reading via IMAP and sending via SMTP for QQ Mail); nothing in the package is requesting unrelated credentials, external endpoints, or surprising installs — but it does ask users to provide and store email auth codes locally, which has normal privacy implications.
评估建议
This skill appears to do what it claims (read/send QQ mail). Before installing/using: (1) Prefer generating an app-specific authorization code (not your QQ login password); (2) Do not paste secrets into public/shared chat history — if you must provide the auth code to an agent, ensure the agent runs locally or that the platform protects chat contents; (3) Restrict permissions of the .env file (e.g., chmod 600) or use a secure OS credential store instead of plaintext; (4) Inspect and run the scri...
详细分析 ▾
用途与能力
Name/description (QQ 邮箱收发) align with included scripts (fetch_orders.py reads IMAP, send_email.py sends via SMTP) and declared dependencies (imap-tools, python-dotenv). No unrelated env vars, binaries, or config paths are requested.
指令范围
SKILL.md instructs the agent to collect the user's QQ email and authorization code and write them into a local .env file; the scripts read that .env and perform only mailbox access and email sending. This is within scope, but collecting secrets via chat and persisting them in plaintext is a privacy/security concern (expected for purpose, but worth highlighting).
安装机制
No install spec — instruction-only plus small Python scripts. Dependencies are standard Python packages from PyPI (imap-tools, python-dotenv). No downloads from arbitrary URLs or archive extraction are present.
凭证需求
The skill needs IMAP/SMTP credentials (authorization code) which are proportionate to its purpose. The package does not request other unrelated secrets. However, it encourages the user to paste the authorization code into the chat and to persist it in a plain .env file, which increases risk of credential exposure if the agent/chat logs or disk are not secured.
持久化与权限
always is false and the skill is user-invocable; it does not attempt to modify other skills or system-wide settings. Its persistent effect is limited to creating/reading a local .env in the working directory (normal for this kind of tool).
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/15

QQemail-agent v1.1.0 - 全新添加对 QQ 邮箱收发邮件的支持,通过 IMAP 读取邮件、SMTP 发送邮件 - 新增用户首次使用时的对话式配置流程与 Agent 引导话术 - 提供手动与自动(.env文件写入)两种配置方式 - 发布详细使用说明和依赖安装文档 - 新增 `fetch_orders.py` 用于读取邮件,`send_email.py` 用于发送邮件

● 无害

安装命令 点击复制

官方npx clawhub@latest install qqemail-agent
镜像加速npx clawhub@latest install qqemail-agent --registry https://cn.clawhub-mirror.com

技能文档

读取QQ邮箱中的邮件和发送邮件到其他账号

功能

  • 📬 通过 IMAP 读取 QQ 邮箱收件箱
  • 📝 解析邮件内容
  • 📧 通过 SMTP 发送汇总邮件

对话式配置(推荐)

用户首次使用时,直接告诉 agent "我想配置 QQ 邮箱",agent 会引导你:

  • 获取授权码 → agent 给你详细步骤
  • 提供信息 → 你告诉 agent 邮箱和授权码
  • 自动配置 → agent 把配置写入 .env

配置引导话术(供 Agent 参考)

用户说"配置QQ邮箱"或类似需求时,Agent 应该:

你好!让我来帮你配置 QQ 邮箱。

我需要以下信息:

  • 你的 QQ 邮箱号(例如:123456789)
  • 你的授权码(不是QQ密码!)

获取授权码步骤:

  • 打开 https://mail.qq.com
  • 登录 → 设置 → 账户
  • 找到 "IMAP/SMTP 服务",开启
  • 点击"生成授权码",按提示完成验证
  • 授权码只显示一次,请保存!

获取后告诉我邮箱和授权码,我帮你写入配置文件。

收到用户回复后,Agent 执行:

import os

env_content = """# IMAP配置(接收邮件) IMAP_HOST=imap.qq.com IMAP_PORT=993 IMAP_USER={邮箱} IMAP_PASS={授权码}

# SMTP配置(发送邮件) SMTP_HOST=smtp.qq.com SMTP_PORT=465 SMTP_USER={邮箱} SMTP_PASS={授权码} """

# 写入 .env 文件 with open('.env', 'w', encoding='utf-8') as f: f.write(env_content)

print("✅ 配置完成!")


手动配置(备用)

安装依赖

pip install imap-tools python-dotenv

获取授权码

重要:必须使用授权码,不是QQ密码!

  • 打开 QQ邮箱
  • 登录 → 设置 → 账户
  • 开启 IMAP/SMTP 服务
  • 点击 生成授权码(需要手机验证)
  • 授权码只显示一次,请保存!

填写配置

新建 .env 文件,填入以下内容:

# IMAP配置(接收邮件)
IMAP_HOST=imap.qq.com
IMAP_PORT=993
IMAP_USER=你的QQ号@qq.com
IMAP_PASS=你的授权码

# SMTP配置(发送邮件) SMTP_HOST=smtp.qq.com SMTP_PORT=465 SMTP_USER=你的QQ号@qq.com SMTP_PASS=你的授权码


使用方法

读取订单邮件

python scripts/fetch_orders.py

发送邮件

python scripts/send_email.py --to "客户邮箱" --subject "主题" --body "内容"

文件说明

文件作用
.env配置文件,填入邮箱和授权码(需手动创建)
scripts/fetch_orders.py读取邮件脚本
scripts/send_email.py发送邮件脚本

技术依赖

  • Python 3.7+
  • imap-tools
  • python-dotenv
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务