增强邮件验证功能,新增发件人邮箱检查,确保发件人包含'cursor'字符串以提高邮件处理的准确性。

This commit is contained in:
jahv 2025-04-30 07:56:28 +08:00
parent be950c510c
commit 2d1604c646

View File

@ -101,6 +101,11 @@ class TempMailPlusTab(EmailTabInterface):
if not data.get('result'):
return ""
# 验证发件人邮箱是否包含cursor字符串
from_mail = data.get('from_mail', '')
if 'cursor' not in from_mail.lower():
return ""
# Extract verification code from text content using regex
text = data.get('text', '')
match = re.search(r'\n\n(\d{6})\n\n', text)