agent-zero/plugins/_email_integration/helpers
frdel 4b6cc7e2e0 refactor: improve email whitelist matching with proper email extraction
- Extract email address from sender string in `_matches_whitelist`
- Add `_extract_email_from_sender` helper function to handle various sender formats
- Prioritize email in angle brackets to prevent display name spoofing
- Support formats: plain email, "Name <email>", and quoted display names
- Add regex validation for extracted email addresses
- Fallback to original sender string if no valid email found
2026-03-17 10:58:33 +01:00
..
__init__.py feat: Add email integration plugin with IMAP/Exchange polling and SMTP reply 2026-03-15 10:59:48 +08:00
attachment_reader.py feat(email): add file attachment support for email replies via RFC 2026-03-15 14:49:37 +08:00
dispatcher.py refactor: remove _read_fw helper, add ChatSummary TypedDict to dispatcher 2026-03-17 02:58:48 +08:00
handler.py refactor: remove _read_fw helper, add ChatSummary TypedDict to dispatcher 2026-03-17 02:58:48 +08:00
imap_client.py refactor: improve email whitelist matching with proper email extraction 2026-03-17 10:58:33 +01:00
smtp_client.py fix: add 30s timeout to SMTP connections to prevent indefinite blocking 2026-03-16 11:51:41 +08:00