feat: support 126 mail provider routing and shared NetEase verification flow
- 合并 PR #112 的核心改动:新增 126 邮箱 provider,并复用 163 / 163 VIP 的网页邮箱接码链路 - 本地补充修复:吸收 126 子域名注入与来源识别修正,以及新版 ChatGPT 登录验证码邮件匹配适配 - 影响范围:sidepanel mail provider、background navigation/source routing、content mail polling、相关回归测试
This commit is contained in:
+7
-1
@@ -754,6 +754,7 @@ function normalizeMailProvider(value = '') {
|
||||
case CLOUDFLARE_TEMP_EMAIL_PROVIDER:
|
||||
case '163':
|
||||
case '163-vip':
|
||||
case '126':
|
||||
case 'qq':
|
||||
case 'inbucket':
|
||||
case '2925':
|
||||
@@ -3856,6 +3857,8 @@ function is163MailHost(hostname = '') {
|
||||
}
|
||||
return hostname === 'mail.163.com'
|
||||
|| hostname.endsWith('.mail.163.com')
|
||||
|| hostname === 'mail.126.com'
|
||||
|| hostname.endsWith('.mail.126.com')
|
||||
|| hostname === 'webmail.vip.163.com';
|
||||
}
|
||||
|
||||
@@ -5956,7 +5959,7 @@ async function ensureAutoEmailReady(targetRun, totalRuns, attemptRuns) {
|
||||
if (!currentState.emailPrefix) {
|
||||
throw new Error('Gmail 原邮箱未设置,请先在侧边栏填写。');
|
||||
}
|
||||
await addLog(`=== 鐩爣 ${targetRun}/${totalRuns} 杞細Gmail +tag 妯″紡宸插惎鐢紝灏嗗湪姝ラ 3 鑷姩鐢熸垚閭锛堢 ${attemptRuns} 娆″皾璇曪級===`, 'info');
|
||||
await addLog(`=== 目标 ${targetRun}/${totalRuns} 轮:Gmail +tag 模式已启用,将在步骤 3 自动生成邮箱(第 ${attemptRuns} 次尝试)===`, 'info');
|
||||
return null;
|
||||
}
|
||||
if (!currentState.emailPrefix) {
|
||||
@@ -6904,6 +6907,9 @@ function getMailConfig(state) {
|
||||
if (provider === '163-vip') {
|
||||
return { source: 'mail-163', url: 'https://webmail.vip.163.com/js6/main.jsp?df=mail163_letter#module=mbox.ListModule%7C%7B%22fid%22%3A1%2C%22order%22%3A%22date%22%2C%22desc%22%3Atrue%7D', label: '163 VIP 邮箱' };
|
||||
}
|
||||
if (provider === '126') {
|
||||
return { source: 'mail-163', url: 'https://mail.126.com/js6/main.jsp?df=mail163_letter#module=mbox.ListModule%7C%7B%22fid%22%3A1%2C%22order%22%3A%22date%22%2C%22desc%22%3Atrue%7D', label: '126 邮箱' };
|
||||
}
|
||||
if (provider === 'inbucket') {
|
||||
const host = normalizeInbucketOrigin(state.inbucketHost);
|
||||
const mailbox = (state.inbucketMailbox || '').trim();
|
||||
|
||||
Reference in New Issue
Block a user