Commit Graph

4 Commits

Author SHA1 Message Date
Yanxin Lu
723c47bbb3 Clean up stale comments, dead code, and code quality issues
- Remove dead code: unused PENDING_FILE, _extract_domain(), sender_domain
  field, imap_uid fallback, check_unseen_only config key
- Fix stale comments: removed tag references in README and docstrings,
  top_domains -> top_senders, 1-based number -> scan_index number
- Make _extract_email_address public (used by 3 modules)
- Extract _format_address helper to deduplicate from/to parsing
- Batch pending queue disk I/O in review act/accept (load once, save once)
- Reuse cleared pending dict in scan instead of redundant disk load
- Track envelope IDs during scan loop to catch duplicates
- Fix default confidence_threshold 75 -> 85 to match config and docs
- Update get_relevant_examples default n=10 -> n=5 to match caller
- Add graceful error for --recent with non-numeric value
2026-03-05 15:28:05 -08:00
Yanxin Lu
64e28b55d1 Compute confidence from decision history instead of LLM 2026-03-04 14:23:50 -08:00
Yanxin Lu
e8c8256967 removed migration 2026-02-26 21:05:27 -08:00
Yanxin Lu
b14a93866e email processor 2026-02-26 20:54:07 -08:00