Skip to content

Commit 6a84e32

Browse files
committed
fix(register): Outlook 跳过发验证码时补充 otp_sent_at 时间戳
跳过 _send_verification_code() 时未设置 _otp_sent_at,导致轮询时 since_minutes=None 只搜 UNSEEN 邮件,已读邮件被忽略。补充时间戳后走 SINCE 时间范围搜索,避免漏检
1 parent cacfb3d commit 6a84e32

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/register.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ def run(self) -> RegistrationResult:
796796
return result
797797
else:
798798
self._log("9. Outlook 邮箱,跳过发送验证码环节")
799+
self._otp_sent_at = time.time() # 记录时间戳,供后续按时间范围搜索邮件
799800

800801
# 10. 获取验证码
801802
self._log("10. 等待验证码...")

0 commit comments

Comments
 (0)