minor fix
This commit is contained in:
@@ -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'[信息] 提示:请检查邮件是否正确')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user