首页龙虾技能列表 › Email Summary — 邮件日报

Email Summary — 邮件日报

v0.1.0

自动生成每日邮件摘要,整理重要邮件并发送提醒。

10· 14,300·130 当前·136 累计
by @10e9928a·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/8
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
medium confidence
该技能的代码和指令与其所述目的(邮件日报生成)一致,它使用邮件API读取和整理邮件,请求适当的配置,不请求无关的凭证或意外端点。
评估建议
此技能似乎确实做到了它声称的:邮件日报生成脚本,用于整理和总结每日邮件。安装或运行之前:1) 确认您的邮件API凭证已妥善配置,并且您对授予邮件读取访问权限感到满意。2) 技能会读取您的邮件内容,请确保只在您信任的环境中运行。3) 注意不要向脚本传递敏感的邮件凭证,除非您信任整个工具链。4) 如果您想要更高的保证,请在运行前在本地审查包含的脚本。...
详细分析 ▾
用途与能力
The skill's name/description (daily email summaries) matches what the SKILL.md instructs: open webmail, extract messages, take screenshots, and produce summaries. Using browser automation to scrape inboxes is a coherent approach for this purpose.
指令范围
The instructions tell the agent/operator to reuse logged-in browser sessions or perform manual logins (including entering passwords via automation). They instruct scraping full email content and taking screenshots — highly sensitive operations. The SKILL.md also references an environment variable (BROWSER_USE_API_KEY) and uses commands that can capture and persist email data, but these env vars/credentials are not declared in the skill metadata. The skill grants broad discretion (e.g., JS eval, Python snippets) to extract arbitrary page content which could exfiltrate anything visible in the browser session.
安装机制
There is no formal install spec in the registry, but the SKILL.md instructs installing a third‑party package ('browser-use') via pip. Installing arbitrary PyPI packages is a material risk if you don't trust the package author. The install command contains a likely typo ('uv pip install'), which is suspicious or at least unclear and would mislead users. Because no source/homepage is provided, provenance of the required tooling is unknown.
凭证需求
The skill metadata declares no required env vars or credentials, but the instructions mention BROWSER_USE_API_KEY and advise (implicitly) reusing browser sessions or entering email passwords. Requesting or using email account credentials is highly sensitive and is not justified in the metadata. The skill does not explain what remote services (if any) the browser-use CLI contacts or whether extracted email content is transmitted off‑device.
持久化与权限
The skill itself is not always-enabled and does not request elevated platform privileges. However the instructions include setting up cron/launchd jobs to run the scraping regularly and writing screenshots/reports to disk. Scheduling repeated automated access to an email account increases the impact if the tooling or configuration is insecure or malicious.
安全有层次,运行前请审查代码。

License

MIT-0

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

运行时依赖

无特殊依赖

版本

latestv0.1.02026/2/5

初始版本,支持邮件日报生成

● 可疑

安装命令 点击复制

官方npx clawhub@latest install email-daily-summary
镜像加速npx clawhub@latest install email-daily-summary --registry https://www.longxiaskill.com

技能文档

这个技能帮助你自动登录邮箱,获取邮件内容,并生成每日邮件总结。

功能特性

  • 🔐 支持多种邮箱登录(Gmail、Outlook、QQ 邮箱、163 邮箱等)
  • 📧 自动获取最新邮件列表
  • 📝 智能生成邮件摘要
  • 🏷️ 按重要性/发件人/主题分类
  • 📊 生成每日邮件统计报告

前置要求

  • 安装 browser-使用 CLI:
uv pip install browser-use[cli]
browser-use install
  • 确保已在浏览器中登录过邮箱(使用 real 模式可直接复用登录状态)

使用方法

方式一:使用已登录的浏览器(推荐)

使用 --browser real 模式可以复用你 Chrome 浏览器中已登录的邮箱会话:

# Gmail
browser-use --browser real open https://mail.google.com

# Outlook browser-use --browser real open https://outlook.live.com

# QQ 邮箱 browser-use --browser real open https://mail.qq.com

# 163 邮箱 browser-use --browser real open https://mail.163.com

方式二:手动登录流程

如果需要手动登录,使用 --headed 模式查看操作过程:

# 打开邮箱登录页面(以 Gmail 为例)
browser-use --headed open https://accounts.google.com

# 查看页面元素 browser-use state

# 输入邮箱地址(根据 state 返回的索引) browser-use input "your-email@gmail.com" browser-use click

# 输入密码 browser-use input "your-password" browser-use click

# 跳转到邮箱 browser-use open https://mail.google.com

获取邮件列表

登录成功后,获取邮件列表:

# 获取当前页面状态,查看邮件列表
browser-use state

# 截图保存当前邮件列表 browser-use screenshot emails_$(date +%Y%m%d).png

# 使用 JavaScript 提取邮件信息(Gmail 示例) browser-use eval " const emails = []; document.querySelectorAll('tr.zA').forEach((row, i) => { if (i < 20) { const sender = row.querySelector('.yX.xY span')?.innerText || ''; const subject = row.querySelector('.y6 span')?.innerText || ''; const snippet = row.querySelector('.y2')?.innerText || ''; const time = row.querySelector('.xW.xY span')?.innerText || ''; emails.push({ sender, subject, snippet, time }); } }); JSON.stringify(emails, null, 2); "

使用 Python 生成邮件总结

# 初始化邮件数据收集
browser-use python "
emails_data = []
summary_date = '$(date +%Y-%m-%d)'
"

# 滚动页面加载更多邮件 browser-use python " for i in range(3): browser.scroll('down') import time time.sleep(1) "

# 提取邮件数据(需要根据实际邮箱 DOM 结构调整) browser-use python " import json

# 获取页面 HTML 进行解析 html = browser.html

# 这里需要根据具体邮箱服务解析 HTML # 示例:统计基本信息 print(f'=== 邮件日报 {summary_date} ===') print(f'页面 URL: {browser.url}') print(f'页面标题: {browser.title}') "

# 截图保存 browser-use python " browser.screenshot(f'email_summary_{summary_date}.png') print(f'截图已保存: email_summary_{summary_date}.png') "

完整的每日邮件总结脚本

创建一个完整的总结流程:

#!/bin/bash
# email_daily_summary.sh

DATE=$(date +%Y-%m-%d) TIME=$(date +%H:%M:%S) OUTPUT_DIR="./email_summaries" mkdir -p "$OUTPUT_DIR"

echo "==========================================" echo "📧 邮件日报生成中..." echo "日期: $DATE $TIME" echo "=========================================="

# 1. 打开邮箱(使用已登录的浏览器) browser-use --browser real open https://mail.google.com

# 2. 等待页面加载 sleep 3

# 3. 获取页面状态 echo "" echo "📋 当前邮箱状态:" browser-use state

# 4. 截图保存邮件列表 echo "" echo "📸 保存截图..." browser-use screenshot "$OUTPUT_DIR/inbox_$DATE.png"

# 5. 提取邮件数据 echo "" echo "📊 邮件统计:" browser-use eval " (() => { const unreadCount = document.querySelectorAll('.zE').length; const totalVisible = document.querySelectorAll('tr.zA').length; return JSON.stringify({ unread: unreadCount, visible: totalVisible, timestamp: new Date().toISOString() }); })() "

# 6. 关闭浏览器 echo "" echo "✅ 完成!截图保存至: $OUTPUT_DIR/inbox_$DATE.png" browser-use close

支持的邮箱服务

邮箱服务登录 URL收件箱 URL
Gmailhttps://accounts.google.comhttps://mail.google.com
Outlookhttps://login.live.comhttps://outlook.live.com
QQ 邮箱https://mail.qq.comhttps://mail.qq.com
163 邮箱https://mail.163.comhttps://mail.163.com
126 邮箱https://mail.126.comhttps://mail.126.com
企业微信邮箱https://exmail.qq.comhttps://exmail.qq.com

生成 AI 邮件摘要

如果配置了 API Key,可以使用 AI 自动生成邮件摘要:

# 使用 AI 提取邮件摘要(需要 BROWSER_USE_API_KEY)
browser-use --browser real open https://mail.google.com
browser-use extract "提取前 10 封邮件的发件人、主题和摘要,按重要性排序"

定时任务设置

macOS/Linux (crontab)

# 编辑 crontab
crontab -e

# 添加每日早上 9 点执行的任务 0 9 * /path/to/email_daily_summary.sh >> /path/to/logs/email_summary.log 2>&1

macOS (launchd)

创建 ~/Library/LaunchAgents/com.email.dailysummary.plist





    Label
    com.email.dailysummary
    ProgramArguments
    
        /bin/bash
        /path/to/email_daily_summary.sh
    
    StartCalendarInterval
    
        Hour
        9
        Minute
        0
    
    StandardOutPath
    /tmp/email_summary.log
    StandardErrorPath
    /tmp/email_summary_error.log


加载任务:

launchctl load ~/Library/LaunchAgents/com.email.dailysummary.plist

输出示例

生成的邮件总结报告格式:

==========================================
📧 邮件日报 - 2026-01-30
==========================================

📊 统计概览:

  • 未读邮件: 12 封
  • 今日新邮件: 28 封
  • 重要邮件: 5 封

🔴 重要邮件:

  • [工作] 来自 boss@company.com
主题: 项目进度汇报 - 紧急 时间: 09:30

  • [财务] 来自 finance@bank.com
主题: 账单提醒 时间: 08:15

📬 今日邮件分类:

  • 工作相关: 15 封
  • 订阅通知: 8 封
  • 社交媒体: 3 封
  • 其他: 2 封

💡 建议操作:

  • 回复 boss@company.com 的邮件
  • 处理 3 封需要审批的邮件

==========================================

安全提示

⚠️ 重要安全建议

  • 不要在脚本中明文保存密码,优先使用 --browser real 模式复用已登录会话
  • 敏感信息使用环境变量存储
  • 定期检查授权应用,移除不需要的第三方访问
  • 启用两步验证保护邮箱安全
  • 日志文件不要包含敏感信息

故障排除

登录失败?

# 使用 headed 模式查看登录过程
browser-use --browser real --headed open https://mail.google.com

页面元素找不到?

# 等待页面完全加载
sleep 5
browser-use state

会话过期?

# 关闭所有会话重新开始
browser-use close --all
browser-use --browser real open https://mail.google.com

清理

完成后记得关闭浏览器:

browser-use close

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

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

了解定制服务