d3fc4e2d42
Supports Gmail (OAuth + filter API), Microsoft 365 (OAuth + full rule CRUD via O365), ProtonMail (Bridge, paid only), and generic IMAP/SMTP providers. 16 tools: list_inbox, read, send, reply, forward, move, delete, mark_read, search, list_folders, create_folder, inbox_summary, list_rules, create_rule, delete_rule, bulk_action. Background daemon task monitors inbox via IMAP IDLE and publishes new-email events to daemon/events.py for messaging bot pickup. Setup wizard warns explicitly about ProtonMail Bridge + paid plan requirement and recommends a messaging bot if none is configured. 36 unit tests covering: HTML stripping, header decoding, raw message parsing, IMAP search builder, Gmail/Outlook rule normalisation, folder-not-found path, events bus, Bridge connectivity guard, and tool approval flags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>