修复自定义邮箱收码模式默认手动

This commit is contained in:
QLHazyCoder
2026-05-28 06:14:04 +08:00
parent 1960b6e21a
commit 2992cc88ac
18 changed files with 1154 additions and 6 deletions
+2
View File
@@ -39,6 +39,7 @@
- `rules.json`:静态 DNR 规则,主要处理 iCloud 相关请求头。
- `start-hotmail-helper.bat`Windows 下启动本地 helper 的脚本;当前既服务于 Hotmail 本地收信,也服务于账号记录快照同步。
- `start-hotmail-helper.command`macOS 下启动本地 helper 的脚本;当前既服务于 Hotmail 本地收信,也服务于账号记录快照同步。
- `start-custom-mail-helper.bat` / `start-custom-mail-helper.command`:启动自定义邮箱本地 helper;只有侧栏 `邮箱服务 = 自定义邮箱``收码方式 = 本地 helper` 时,扩展才会调用该 helper 自动轮询验证码。
- `THIRD_PARTY_NOTICES.md`:项目来源、共同历史、原仓库地址与许可说明,用于补充当前仓库与历史上游代码的来源关系。
- `开发者AI开发与PR提交流程.md`:仓库现有的 AI 开发与 PR 提交流程说明。
- `项目文件结构说明.md`:当前文件,维护整个仓库非忽略文件的结构与职责索引。
@@ -183,6 +184,7 @@
- `scripts/gpc_sms_helper_macos.py`GPC Plus helper 的 macOS 本地短信验证码 helper,读取本机 Messages 数据库中的 GoPay/OpenAI 短信 OTP,并通过 `http://127.0.0.1:18767/latest-otp?phone=...&consume=1` 提供给扩展按手机号自动轮询;`/otp` 仍保留兼容,`consume=1` 会消费本次返回的验证码记录,避免下次重复读取。
- `scripts/hotmail_helper.py`:本地 helper 服务,负责通过本地接口协助 Hotmail 获取邮件和验证码,并提供账号记录 JSON 快照同步接口;旧的文本追加接口仍保留作兼容。
- `scripts/custom_mail_helper.py`:自定义邮箱可选本地 IMAP helper,读取 `.env` 中的 `FLOWPILOT_CUSTOM_IMAP_*` 配置并提供 `/code``/messages` 等本地接口;默认自定义邮箱仍走手动确认,只有用户显式选择本地 helper 模式才会调用。
## `shared/`