forked from mirrors/cursor-free-vip
增强邮件验证功能,新增发件人邮箱检查,确保发件人包含'cursor'字符串以提高邮件处理的准确性。
This commit is contained in:
@@ -101,6 +101,11 @@ class TempMailPlusTab(EmailTabInterface):
|
|||||||
if not data.get('result'):
|
if not data.get('result'):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
# 验证发件人邮箱是否包含cursor字符串
|
||||||
|
from_mail = data.get('from_mail', '')
|
||||||
|
if 'cursor' not in from_mail.lower():
|
||||||
|
return ""
|
||||||
|
|
||||||
# Extract verification code from text content using regex
|
# Extract verification code from text content using regex
|
||||||
text = data.get('text', '')
|
text = data.get('text', '')
|
||||||
match = re.search(r'\n\n(\d{6})\n\n', text)
|
match = re.search(r'\n\n(\d{6})\n\n', text)
|
||||||
|
|||||||
Reference in New Issue
Block a user