clawd/config/email-rules.yaml

114 lines
3.1 KiB
YAML

# Email Rules for James
# Expand this as patterns emerge
# =============================================================================
# AUTO-ACTIONS (No AI needed)
# =============================================================================
auto_archive:
# GitHub notifications - already reviewed in-app
- from: "*@github.com"
- from: "noreply@github.com"
# Automated receipts and confirmations
- from: "noreply@*"
- from: "no-reply@*"
- from: "donotreply@*"
# Marketing I've subscribed to but don't need to read
- from: "*@marketing.*"
# Build/CI notifications
- subject: "[CI]*"
- subject: "Build *"
auto_delete:
# Known spam patterns
- from: "*@spam*"
# Unsubscribed but persistent
# (add patterns here as they emerge)
# =============================================================================
# PRIORITY ESCALATION (Always notify Johan immediately)
# =============================================================================
always_escalate:
# Work domains
- from: "*@inou.com"
- from: "*@kaseya.com"
- from: "*@iasobackup.com"
# Family
- from: "*@jongsma.me"
# Financial/Legal (keywords in subject)
- subject: "*invoice*"
- subject: "*payment*"
- subject: "*urgent*"
- subject: "*action required*"
- subject: "*security alert*"
- subject: "*password*"
- subject: "*2fa*"
- subject: "*verification*"
# =============================================================================
# JAMES HANDLES (I process these, escalate if uncertain)
# =============================================================================
james_handles:
# Shipping notifications - I track these
- from: "*@ups.com"
- from: "*@fedex.com"
- from: "*@usps.com"
- from: "*@dhl.com"
- from: "*@amazon.com"
subject: "*shipped*"
- from: "*@amazon.com"
subject: "*delivered*"
# Service notifications I can summarize
- from: "*@cloudflare.com"
- from: "*@digitalocean.com"
- from: "*@hetzner.com"
- from: "*@tailscale.com"
# Newsletters Johan wants summarized
- from: "*@substack.com"
- from: "*@beehiiv.com"
# =============================================================================
# RESPONSE TEMPLATES
# =============================================================================
templates:
acknowledge_receipt: |
Thank you for your email. I'll review this and get back to you shortly.
out_of_office: |
Thanks for reaching out. I'm currently unavailable but will respond as soon as possible.
forward_to_support: |
Thank you for contacting us. I'm forwarding this to the appropriate team who will assist you.
# =============================================================================
# SPECIAL HANDLING
# =============================================================================
shipping:
# Track these carriers and update dashboard
carriers:
- ups
- fedex
- usps
- dhl
- amazon
# Extract tracking numbers and create dashboard entries
track_to_dashboard: true
newsletters:
# Summarize instead of forwarding full content
summarize: true
max_summary_length: 200