Install
openclaw skills install email-assistant多邮箱管理助手,支持 Gmail、163、QQ、Outlook、Hotmail。功能:(1) 读取收件箱并展示邮件摘要 (2) 关键词分析标记重要邮件 (3) 自动提取邮件中的日程信息并生成日历事件。适用于需要统一管理多个邮箱、避免错过重要邮件和日程的用户。
openclaw skills install email-assistant| 邮箱 | 协议 | 服务器配置 |
|---|---|---|
| Gmail | OAuth2 + IMAP | imap.gmail.com:993 |
| 163 | IMAP | imap.163.com:993 |
| IMAP | imap.qq.com:993 | |
| Outlook | IMAP | outlook.office365.com:993 |
| Hotmail | IMAP | outlook.office365.com:993 |
首次使用需要配置 OAuth:
# 1. 在 Google Cloud Console 创建项目
# 2. 启用 Gmail API
# 3. 创建 OAuth 2.0 客户端凭据
# 4. 下载凭据文件为 credentials.json
# 5. 首次运行会自动打开浏览器授权
运行脚本:
cd scripts
python3 gmail_client.py --credentials ../credentials.json
直接运行:
python3 imap_client.py --server <服务器> --email <邮箱> --password <密码或App密码>
# 查看收件箱
python3 mail_parser.py --inbox
# 搜索特定邮件
python3 mail_parser.py --search "关键词"
# 分析重要邮件
python3 mail_parser.py --analyze
# 从邮件中提取日程并生成 ICS 文件
python3 scheduler.py --extract --output events.ics
Gmail OAuth 认证客户端。首次运行会打开浏览器进行授权,之后凭据会缓存。
通用 IMAP 客户端,适用于 163、QQ、Outlook、Hotmail。使用 App Password 认证。
邮件解析器。解析纯文本/HTML 邮件,提取关键信息,分析重要性。
日程提取器。从邮件中识别 iCal 附件或纯文本日程,生成标准 ICS 日历文件。
自动识别以下关键词:
支持格式: