minor fix

This commit is contained in:
2025-08-14 15:59:28 +08:00
parent 0d8648c567
commit 7d8e8a1f98

View File

@@ -243,11 +243,11 @@ def main():
continue
subject = locate("h1.subject").text.strip()
sender = locate("header div.from").text[6:].replace('\n', ' ')
sender = locate("header div.from").text[6:].replace('\n', ' ').strip()
print(f'[信息] 已读取邮件:{subject}')
print(f'[信息] 指定发件人:{sender}')
if sender.lower().find(f'<{str(args.address).lower()}>') == -1:
if sender.lower() != str(args.address).lower():
print(f'[警告] 检测到发件人与设定不一致')
print(f'[信息] 提示:请检查邮件是否正确')