Email Intelligence
Analyze your email inbox health using creative weather metaphors, intelligent classification, debt scoring, and ghost detection. Transform overwhelming inbox analysis into clear, actionable insights.
When to Use
Use this skill when the user asks about:
- - Inbox status or health
- Email overwhelm or management
- Who they're "ghosting" (ignoring responses to)
- Time cost of processing their inbox
- Signal vs noise in their email
- Email debt or backlog
Requirements
- - himalaya CLI configured with IMAP access
- Python 3.6+
- The configured email account should have standard folder names (INBOX, Archive)
Quick Usage
CODEBLOCK0
Weather System
The inbox "weather" is determined by the number of human emails in your INBOX that need responses:
- - 🌊 Calm Seas (0-2): Inbox is peaceful and manageable
- 🍃 Light Breeze (3-5): A few emails need attention, nothing urgent
- 🌬️ Choppy Waters (6-10): Multiple emails require responses
- ⛵ Small Craft Advisory (11-20): Many people waiting for replies
- ⛈️ Storm Warning (21+): Inbox is overwhelming, needs immediate attention
Email Classification
Emails are automatically classified into four categories:
🤖 Automated
- - Sender contains: noreply, no-reply, donotreply, notifications@, alerts@
- Subject contains: unsubscribe, automatic, auto-generated
- Time cost: 0 minutes (can be safely ignored)
📰 Newsletter
- - From domains: substack.com, email., marketing., updates@
- Subject contains: newsletter, digest, weekly, monthly, roundup
- Time cost: 1 minute each (skim or archive)
🔔 Notification
- - From services: github, slack, jira, linear, aws, google, microsoft, etc.
- Time cost: 30 seconds each (quick action/acknowledgment)
👥 Human
- - Everything else (actual people writing)
- Time cost: 3 minutes each (requires thoughtful response)
Metrics Explained
Email Debt Score (0-100)
Calculated based on unseen human emails in your INBOX, weighted by age:
- - < 1 day old: 1 point each
- 1-3 days old: 3 points each
- 3-7 days old: 5 points each
- 7+ days old: 10 points each
Score meanings:
- - 0-30: 🟢 Great job! Inbox under control
- 31-60: 🟡 Getting busy. Consider tackling some replies
- 61-100: 🔴 High debt! Many emails waiting for responses
Signal-to-Noise Ratio
Percentage of emails that are from humans (signal) vs automated/newsletter/notification (noise).
Higher ratio = more meaningful email, less spam/clutter.
Ghost Report
Shows up to 5 people you're "ghosting" (human emails you haven't read), sorted by how long they've been waiting. Helps prioritize who needs responses most urgently.
Time Investment
Estimates how much time you'll need to process your current inbox based on email types and their typical processing times.
Output Formats
Text Format (Default)
Human-readable report with weather, debt score, signal/noise analysis, ghost report, and time estimates. Perfect for quick status updates or daily reviews.
JSON Format
Structured data for integration with other tools, APIs, or dashboards:
CODEBLOCK1
Integration Tips
Dashboard Integration
The JSON output is designed for easy integration into dashboards or status displays. The weather metaphor makes it intuitive for users to understand their inbox state at a glance.
Automation
Run periodically (via cron) to track inbox health trends over time. The debt score is particularly useful for identifying when inbox maintenance is needed.
Alerts
Set up alerts when:
- - Weather reaches "Storm Warning" level
- Debt score exceeds 60
- Ghost report shows people waiting >5 days
Troubleshooting
No emails found
- - Verify himalaya CLI is configured: INLINECODE0
- Check folder names match your email provider (some use "Inbox" vs "INBOX")
Classification seems wrong
The classification uses heuristics based on sender patterns and subject lines. You can modify the patterns in the script for your specific needs.
Slow performance
- - Reduce the
--days parameter to analyze fewer emails - The script fetches up to 200 emails from Archive - adjust
page_size in the code if needed
Philosophy
Email Intelligence treats your inbox as a living system with its own weather patterns and health metrics. Rather than just counting unread emails, it helps you understand:
- - What actually needs your attention (humans vs bots)
- How "behind" you are (debt score)
- Who you might be accidentally ignoring (ghost report)
- How much time you're really looking at (time cost)
The weather metaphor makes inbox status intuitive and actionable - you know to "batten down the hatches" when a storm is brewing, but you can relax when the seas are calm.
Use this skill to transform inbox anxiety into clear, prioritized action plans.
邮件智能分析
使用创意天气隐喻、智能分类、债务评分和幽灵检测来分析您的收件箱健康状况。将令人不知所措的收件箱分析转化为清晰、可操作的洞察。
使用时机
当用户询问以下内容时使用此技能:
- - 收件箱状态或健康状况
- 邮件过载或管理
- 他们在忽略谁(未回复的人)
- 处理收件箱的时间成本
- 邮件中的信号与噪音
- 邮件债务或积压
要求
- - himalaya CLI 配置了IMAP访问权限
- Python 3.6+
- 配置的邮箱账户应具有标准文件夹名称(INBOX, Archive)
快速使用
bash
基础分析(最近7天)
python3 scripts/email_classify.py
扩展分析(最近14天)
python3 scripts/email_classify.py --days 14
JSON格式输出用于集成
python3 scripts/email_classify.py --format json
天气系统
收件箱的天气由收件箱中需要回复的人工邮件数量决定:
- - 🌊 风平浪静(0-2):收件箱平静且可控
- 🍃 微风轻拂(3-5):少数邮件需要关注,无紧急事项
- 🌬️ 波涛汹涌(6-10):多封邮件需要回复
- ⛵ 小船预警(11-20):许多人在等待回复
- ⛈️ 风暴警报(21+):收件箱不堪重负,需要立即处理
邮件分类
邮件自动分为四类:
🤖 自动邮件
- - 发件人包含:noreply, no-reply, donotreply, notifications@, alerts@
- 主题包含:unsubscribe, automatic, auto-generated
- 时间成本:0分钟(可安全忽略)
📰 新闻通讯
- - 来自域名:substack.com, email., marketing., updates@
- 主题包含:newsletter, digest, weekly, monthly, roundup
- 时间成本:每封1分钟(快速浏览或归档)
🔔 通知
- - 来自服务:github, slack, jira, linear, aws, google, microsoft等
- 时间成本:每封30秒(快速操作/确认)
👥 人工邮件
- - 其他所有邮件(真实人员发送)
- 时间成本:每封3分钟(需要认真回复)
指标说明
邮件债务评分(0-100)
基于收件箱中未读的人工邮件计算,按时间加权:
- - < 1天:每封1分
- 1-3天:每封3分
- 3-7天:每封5分
- 7天以上:每封10分
评分含义:
- - 0-30:🟢 做得好!收件箱可控
- 31-60:🟡 开始忙碌。考虑处理一些回复
- 61-100:🔴 高债务!许多邮件等待回复
信号与噪音比
来自人工的邮件(信号)与自动/新闻通讯/通知(噪音)的百分比。
比率越高 = 邮件越有意义,垃圾/杂乱越少。
幽灵报告
显示最多5个您正在忽略的人(您未读的人工邮件),按等待时间排序。帮助确定谁最需要回复。
时间投入
根据邮件类型及其典型处理时间,估算处理当前收件箱所需的时间。
输出格式
文本格式(默认)
可读报告,包含天气、债务评分、信号/噪音分析、幽灵报告和时间估算。适合快速状态更新或每日回顾。
JSON格式
结构化数据,用于与其他工具、API或仪表板集成:
json
{
weather: {
level: breeze,
emoji: 🍃,
description: 微风轻拂 - 少数邮件需要关注...,
humanCount: 4
},
categories: {
automated: 15,
newsletter: 8,
notification: 12,
human: 4
},
debtScore: 18,
ghostReport: [...],
signalNoiseRatio: {
ratio: 0.103,
percentage: 10%
},
timeCost: {
minutes: 18,
formatted: 18分钟
}
}
集成建议
仪表板集成
JSON输出设计用于轻松集成到仪表板或状态显示中。天气隐喻使用户能够直观地了解收件箱状态。
自动化
定期运行(通过cron)以跟踪收件箱健康趋势。债务评分特别有助于识别何时需要维护收件箱。
警报
在以下情况下设置警报:
- - 天气达到风暴警报级别
- 债务评分超过60
- 幽灵报告显示有人等待超过5天
故障排除
未找到邮件
- - 确认himalaya CLI已配置:himalaya envelope list -f INBOX --page-size 1
- 检查文件夹名称是否与您的邮件提供商匹配(有些使用Inbox而非INBOX)
分类似乎有误
分类基于发件人模式和主题行的启发式规则。您可以根据需要修改脚本中的模式。
性能缓慢
- - 减少--days参数以分析更少的邮件
- 脚本从Archive获取最多200封邮件 - 如有需要,可在代码中调整page_size
理念
邮件智能分析将您的收件箱视为一个具有自身天气模式和健康指标的活系统。它不仅仅是计算未读邮件,而是帮助您理解:
- - 什么真正需要您的关注(人工 vs 机器人)
- 您落后了多少(债务评分)
- 您可能无意中忽略了谁(幽灵报告)
- 您实际需要投入多少时间(时间成本)
天气隐喻使收件箱状态直观且可操作 - 当风暴酝酿时您知道要做好准备,但当风平浪静时您可以放松。
使用此技能将收件箱焦虑转化为清晰、优先的行动计划。