All intelligence now lives in OpenClaw (James). Mail Agent is just:
- IMAP API (list/read/move/delete)
- IMAP IDLE monitoring
- Webhook POST to /hooks/mail
Removed:
- L1 Fireworks llama triage
- L2/L3 escalation logic
- Hardcoded shipping detection
- Rule-based routing
- All AI logic
974 lines deleted, complexity moved to the right place.
- parse_envelope now handles Envelope named tuple (imapclient format)
- parse_address now handles Address named tuple
- date field preserved as datetime object, not stringified
- Add .venv and __pycache__ to .gitignore