mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-07 04:52:50 +08:00
088bf3eefe5f373eea40ad404e3b7a6f254c1578
修复了在 K8s 环境中运行时出现的错误:
File "/usr/local/lib/python3.12/site-packages/twisted/mail/imap4.py", line 1685, in __cbManualSearch
lastSequenceId = result and result[-1][0]
TypeError: 'generator' object is not subscriptable
问题原因:
- fetch 方法返回了生成器对象
- Twisted IMAP4 库在处理 SEARCH 命令时需要对结果进行索引访问
- 生成器不支持索引操作
解决方案:
- 将 fetch 方法的返回值从生成器改为列表
- 保持 fetchGenerator 方法的分批获取逻辑(batch_size=20)
- 确保内存占用可控的同时支持所有 IMAP 操作
…
…
…
…
…
…
…
…
…
Cloudflare Temp Email
A fully-featured temporary email service built on Cloudflare's free services.
This project is for learning and personal use only.
🚀 Quick Start
✨ Key Features
- <EFBFBD> Email Processing: Rust WASM parser, SMTP/IMAP support, attachments, auto-reply
- 👥 User Management: OAuth2 login, Passkey authentication, role management
- 🌐 Admin Panel: Complete admin console, user management, scheduled cleanup
- 🤖 Integrations: Telegram Bot, webhooks, CAPTCHA, rate limiting
- <EFBFBD> Modern UI: Multi-language, responsive design, JWT auto-login
🏗️ Tech Stack
- Frontend: Vue 3 + TypeScript + Vite
- Backend: Cloudflare Workers + D1 Database
- Email: Cloudflare Email Routing + Rust WASM Parser
- Storage: Cloudflare KV + R2 (optional S3)
🌟 Community
📄 License
MIT License - see LICENSE for details.
Languages
TypeScript
45.7%
Vue
44.8%
Python
4.7%
JavaScript
3.9%
Rust
0.6%
Other
0.3%