fix: harden 2925 mailbox reuse and forwarded mail parsing

- 合并 PR #169 的核心改动:在复用 2925 邮箱页前恢复 content script ready,并支持 OpenAI bounce 转发地址反解与中文日期解析。
- 本地补充修复:无。
- 影响范围:2925 邮箱会话确认、2925 邮件轮询、相关回归测试。
This commit is contained in:
QLHazyCoder
2026-04-28 11:26:11 +08:00
committed by GitHub
4 changed files with 62 additions and 13 deletions
@@ -68,7 +68,7 @@ test('ensureMail2925MailboxSession reuses current mailbox page without sending l
});
assert.equal(sendCalls, 0);
assert.equal(readyCalls, 0);
assert.equal(readyCalls, 1);
assert.equal(result.result.usedExistingSession, true);
});
+1
View File
@@ -319,6 +319,7 @@ return {
test('handlePollEmail skips explicit mismatched target emails when receive-mode matching is enabled', async () => {
const bundle = [
extractFunction('extractEmails'),
extractFunction('extractForwardedTargetEmails'),
extractFunction('emailMatchesTarget'),
extractFunction('getTargetEmailMatchState'),
extractFunction('normalizeMinuteTimestamp'),