From 2d1604c64666678c0d328f3bdfe8346067c48705 Mon Sep 17 00:00:00 2001 From: jahv Date: Wed, 30 Apr 2025 07:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E9=82=AE=E4=BB=B6=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=8F=91?= =?UTF-8?q?=E4=BB=B6=E4=BA=BA=E9=82=AE=E7=AE=B1=E6=A3=80=E6=9F=A5=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E5=8F=91=E4=BB=B6=E4=BA=BA=E5=8C=85=E5=90=AB?= =?UTF-8?q?'cursor'=E5=AD=97=E7=AC=A6=E4=B8=B2=E4=BB=A5=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=A4=84=E7=90=86=E7=9A=84=E5=87=86=E7=A1=AE?= =?UTF-8?q?=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- email_tabs/tempmail_plus_tab.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/email_tabs/tempmail_plus_tab.py b/email_tabs/tempmail_plus_tab.py index 42fd9b5..81b556d 100644 --- a/email_tabs/tempmail_plus_tab.py +++ b/email_tabs/tempmail_plus_tab.py @@ -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)