🚀 更新 TempMailPlus 的 Cursor 邮件识别逻辑 #823
Merged
+266
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 变更说明
本次更新优化了 TempMailPlus 中用于识别 Cursor 验证邮件的逻辑:
• 原逻辑:依赖发件人字段来判断是否是 Cursor 发来的验证码邮件
• 现逻辑:直接读取第一封新邮件,并判断其内容中是否包含验证码(通过特征模式匹配)
✅ 优势
• 更加稳健:Cursor 邮件有时发件人字段缺失或变化,原逻辑容易误判
• 更加自洽:验证码本身就是判断邮件有效性的核心依据
• 更少依赖:去除对具体发件人地址的依赖,提高系统鲁棒性