refactor(config): 优化Outlook提供者优先级和验证码匹配逻辑

- 调整Outlook提供者优先级:IMAP_OLD > IMAP_NEW > Graph API
- 增强OpenAI验证邮件发件人匹配模式,支持子域名
- 改进Graph API提供者的401错误处理,避免因权限不足误判
- 修复配置解析中的类型转换问题
This commit is contained in:
cnlimiter
2026-03-15 19:10:53 +08:00
parent 1628552b92
commit 2f2fb51764
4 changed files with 32 additions and 10 deletions

View File

@@ -132,7 +132,8 @@ OTP_CODE_SEMANTIC_PATTERN = r'(?:code\s+is|验证码[是为]?\s*[:]?\s*)(\d{6
OPENAI_EMAIL_SENDERS = [
"noreply@openai.com",
"no-reply@openai.com",
"@openai.com", # 通配符匹配
"@openai.com", # 精确域名匹配
".openai.com", # 子域名匹配(如 otp@tm1.openai.com
]
# OpenAI 验证邮件关键词