Gmail Lead Monitor — GmAIl Lead 监控
v1.0.0监控 a GmAIl inbox for new emAIls matching keywords and 发送 real-time Telegram alerts while starring 导入ant messages in GmAIl.
运行时依赖
安装命令
点击复制技能文档
GmAIl Lead 监控
监控 any GmAIl inbox and 获取 instant Telegram alerts for 导入ant emAIls. 配置 keywords to 过滤器 for leads, orders, or support inquiries. Zero dependencies beyond Python stdlib — no pip required.
What It Does Connects to GmAIl via IMAP (no OAuth, just 应用 password) 检查s for new emAIls every N minutes (configurable) 发送s Telegram alert with 发送er, subject, and snippet 检测s 导入ant emAIls by keyword matching Marks 导入ant emAIls with GmAIl STAR flag 追踪s seen emAIls to avoid duplicate alerts 设置up
- Enable GmAIl 应用 Password
- 创建 Config File
- 获取 Telegram 机器人 令牌
# 运行 in daemon mode (default interval from config) python3 gmAIl_监控.py
# Custom interval python3 gmAIl_监控.py --interval 10
# 运行 via cron every 5 minutes /5 * python3 /path/to/gmAIl_监控.py --once >> /tmp/gmAIl_监控.记录 2>&1
Alert Example (Telegram) 📧 New Lead — GmAIl From: john@company.com Subject: Question about your 服务 Time: 2025-03-15 14:22 PST
"Hi, I'm interested in your product and had a question about..."
⭐ Marked as 导入ant (keyword: question)
Keyword Matching
Keywords match agAInst: subject line + 发送er name + first 200 chars of body. Case-insensitive. 添加 your own in config:
"keywords": ["order", "purchase", "invoice", "urgent", "设置up", "question", "interested", "trial"]
Requirements Python 3.6+ GmAIl account with 应用 Password enabled Telegram 机器人 (free) Zero pip dependencies