This commit is contained in:
huangzhenpc
2025-02-26 14:53:10 +08:00
parent ea0a8dbfd3
commit 40d20ada9f
2 changed files with 8 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ class EmailHandler(Message):
logging.info(f"邮件保存成功: 来自 {envelope.mail_from} 发送给 {envelope.rcpt_tos}")
return '250 消息接收完成'
else:
logging.error(f"邮件保存失败: {error_msg}")
logging.error(f"邮件保存失败#server: {error_msg}")
# 即使保存失败,也返回成功状态码,避免邮件服务器重试
return '250 消息已收到'