cloudflare_temp_email/db
Dream Hunter dbb55d948f
feat: add AI email extraction with Cloudflare Workers AI
Add AI-powered email content extraction feature using Cloudflare Workers AI to automatically identify and extract important information from emails including verification codes, authentication links, service links, and subscription links.

Features:
- AI extraction with priority-based logic (auth_code > auth_link > service_link > subscription_link > other_link)
- Admin allowlist configuration with wildcard support (*@example.com)
- Frontend display in both email list (compact) and detail view (full mode)
- Bilingual documentation (Chinese/English)
- Database migration: add metadata field to raw_mails (v0.0.3 -> v0.0.4)

Technical highlights:
- Proper regex escaping for wildcard pattern matching
- Content truncation to avoid AI token limits
- Error handling that won't affect email receiving
- JSON schema validation for AI responses
- Type-safe TypeScript implementation
- Vue I18n support with special character escaping

References:
- Inspired by Alle Project: https://github.com/bestruirui/Alle
- Uses Cloudflare Workers AI JSON Mode

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-06 16:28:19 +08:00
..
2024-01-13-patch.sql feat: add admin account search && delete account for user (#96) 2024-04-04 14:30:07 +08:00
2024-04-03-patch.sql feat: add admin account search && delete account for user (#96) 2024-04-04 14:30:07 +08:00
2024-04-09-patch.sql feat: use rust mail-parser (#104) 2024-04-09 14:58:19 +08:00
2024-04-12-patch.sql feat: init send mail (#113) 2024-04-12 13:26:42 +08:00
2024-05-01-patch.sql feat: add address_block_list for new address (#185) 2024-05-02 15:23:37 +08:00
2024-05-08-patch.sql feat: add UserLogin (#209) 2024-05-08 23:14:44 +08:00
2024-07-14-patch.sql feat: add USER_ROLES && admin pages search when keybord enter && auto trim (#348) 2024-07-14 19:57:43 +08:00
2024-08-10-patch.sql feat: add passkey (#384) 2024-08-10 23:56:05 +08:00
2025-09-23-patch.sql feat: implement address password authentication feature (#731) 2025-09-26 14:52:05 +08:00
2025-12-06-metadata.sql feat: add AI email extraction with Cloudflare Workers AI 2025-12-06 16:28:19 +08:00
schema.sql feat: add AI email extraction with Cloudflare Workers AI 2025-12-06 16:28:19 +08:00