mirror of
https://github.com/yeongpin/cursor-free-vip.git
synced 2025-08-02 20:47:35 +08:00
增强邮件验证功能,新增发件人邮箱检查,确保发件人包含'cursor'字符串以提高邮件处理的准确性。
This commit is contained in:
parent
be950c510c
commit
2d1604c646
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user