Email Checker for Mac
Automated email assistant for Apple Mail on macOS. Runs on a schedule, scores
your unread emails by priority, drafts AI replies, and sends you a report —
so you can manage your inbox from Telegram or WhatsApp without ever opening Mail.app.
Installation
CODEBLOCK0
Setup
The wizard handles everything:
- 1. Auto-discovers your Mail.app accounts
- Prompts for name, report email, trusted senders
- Picks your LLM provider (LM Studio, Ollama, OpenAI, or skip)
- Tests the connection and writes INLINECODE0
- Installs the crontab
Usage
CODEBLOCK1
OpenClaw Integration
Tell OpenClaw via Telegram or WhatsApp:
"Run the email checker now"
"Send the draft reply to Alice"
"Add @company.com to my trusted senders"
Supported LLM Providers
| Provider | Notes |
|---|
| LM Studio | Local or remote vLLM endpoint |
| Ollama |
Local |
| OpenAI | Requires API key |
| None | Reports without AI drafts |
Requirements
- - macOS (tested on Tahoe 26.3, Apple Silicon)
- Python 3
- Mail.app with at least one configured account
- Automation permission: System Settings → Privacy & Security → Automation → Terminal → Mail
Mac 邮件检查器
macOS 上 Apple Mail 的自动化邮件助手。按计划运行,根据优先级对未读邮件进行评分,起草 AI 回复,并向您发送报告——这样您就可以通过 Telegram 或 WhatsApp 管理收件箱,而无需打开 Mail.app。
安装
bash
git clone https://github.com/entzclaw/email-checker-for-mac
cd email-checker-for-mac
bash setup.sh
设置
向导会处理所有事项:
- 1. 自动发现您的 Mail.app 账户
- 提示输入姓名、报告邮箱、可信发件人
- 选择您的 LLM 提供商(LM Studio、Ollama、OpenAI 或跳过)
- 测试连接并写入 config/settings.json
- 安装 crontab 定时任务
使用方法
bash
运行手动检查
python3 scripts/email/checker.py
发送回复
python3 scripts/email/send_reply.py \
--to colleague@example.com \
--subject 回复:某事项 \
--content 您的回复内容
查看日志
tail -f logs/email_check.log
OpenClaw 集成
通过 Telegram 或 WhatsApp 告诉 OpenClaw:
现在运行邮件检查
将草稿回复发送给 Alice
将 @company.com 添加到我的可信发件人
支持的 LLM 提供商
| 提供商 | 说明 |
|---|
| LM Studio | 本地或远程 vLLM 端点 |
| Ollama |
本地 |
| OpenAI | 需要 API 密钥 |
| 无 | 无 AI 草稿的报告 |
系统要求
- - macOS(已在 Tahoe 26.3、Apple Silicon 上测试)
- Python 3
- 至少配置了一个账户的 Mail.app
- 自动化权限:系统设置 → 隐私与安全性 → 自动化 → 终端 → 邮件