将hotmail支持本地和远程两种,远程不一定合适,可能考虑远程需要自行修改适配

This commit is contained in:
QLHazyCoder
2026-04-13 16:28:01 +08:00
parent 36aeecf214
commit e46f861045
8 changed files with 1119 additions and 95 deletions
+56 -8
View File
@@ -52,7 +52,7 @@
- 支持自定义密码;留空时自动生成强密码
- 自动显示当前使用中的密码,便于后续保存
- 自动获取注册验证码与登录验证码
- 支持 `Hotmail`直接使用 `邮箱 + 客户端 ID + 刷新令牌(refresh token` 请求第三方邮件 API 读取最新邮件
- 支持 `Hotmail`继续使用 `邮箱 + 客户端 ID + 刷新令牌(refresh token`,并可在远程服务与本地助手两种模式间切换
- 支持 `QQ Mail``163 Mail``Inbucket mailbox`
- 支持从 DuckDuckGo Email Protection 自动生成新的 `@duck.com` 地址
- 支持基于 Cloudflare 自定义域名自动生成随机邮箱前缀
@@ -137,7 +137,7 @@ Step 1 和 Step 9 都依赖这个地址。
说明:
- `Hotmail` 通过侧边栏里的 Hotmail 账号池选择账号,并请求第三方邮件 API
- `Hotmail` 通过侧边栏里的 Hotmail 账号池选择账号,可切换为远程服务模式或本地助手模式
- `QQ``163``163 VIP` 用于直接轮询网页邮箱
- `Inbucket` 通过你在侧边栏里配置的 host 访问 `mailbox` 页面:`https://<your-inbucket-host>/m/<mailbox>/`
@@ -147,10 +147,9 @@ Step 1 和 Step 9 都依赖这个地址。
可配置项:
- `Hotmail API 地址`
- `响应类型`
- `收件箱参数`
- `垃圾箱参数`
- `接码模式`
- `远程服务地址`
- `本地助手地址`
每条账号支持保存:
@@ -161,12 +160,61 @@ Step 1 和 Step 9 都依赖这个地址。
使用方式:
-配置 Hotmail API 相关设置
-选择 Hotmail 接码模式
- 远程模式下填写远程服务地址(默认兼容 `https://apple.882263.xyz`
- 本地模式下填写本地助手地址(默认 `http://127.0.0.1:17373`
- Windows 运行仓库根目录的 `start-hotmail-helper.bat`
- macOS 运行仓库根目录的 `start-hotmail-helper.command`
- 本地 helper 当前仅依赖 Python 标准库,无需额外安装第三方 Python 包
- 再新增账号
- 点击 `校验`
- 校验通过后,可点击 `测试收信`
- Auto 模式每轮会自动选用一个可用账号
#### 本地 helper 启动命令
Windows
```powershell
.\start-hotmail-helper.bat
```
macOS
```bash
chmod +x ./start-hotmail-helper.command
./start-hotmail-helper.command
```
如果你不想走启动脚本,也可以直接运行 Python 程序本体:
```bash
python scripts/hotmail_helper.py
```
如果你的环境里命令是 `python3`
```bash
python3 scripts/hotmail_helper.py
```
#### 启动成功标志
本地 helper 启动成功后,终端会输出:
```text
Hotmail helper listening on http://127.0.0.1:17373
```
看到这行再回到扩展里点 `校验``复制最新验证码`
#### 最小排错说明
- 如果提示 `Python 3 not found`,先安装 Python 3.10+
- 如果 helper 已启动但扩展仍报连接失败,先确认模式切到了 `本地助手`
- 确认本地助手地址与终端输出一致,默认应为 `http://127.0.0.1:17373`
- 如果地址一致仍失败,再检查是否有端口占用或终端里是否已经抛出异常
### `Mailbox`
仅当 `Mail = Inbucket` 时显示。
@@ -414,7 +462,7 @@ Cloudflare 模式下,插件不会再调用 Cloudflare API 创建路由。
支持:
- `Hotmail`第三方邮件 API
- `Hotmail`远程服务 / 本地助手
- `content/qq-mail.js`
- `content/mail-163.js`
- `content/inbucket-mail.js`