mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
fix message logging
This commit is contained in:
parent
aa667851e9
commit
1750ad45d5
|
@ -1626,7 +1626,9 @@ def handle(envelope: Envelope) -> str:
|
||||||
# but it's possible that some MTA don't send the bounce report correctly
|
# but it's possible that some MTA don't send the bounce report correctly
|
||||||
# todo: to remove once this issue is understood
|
# todo: to remove once this issue is understood
|
||||||
if mail_from == "<>":
|
if mail_from == "<>":
|
||||||
LOG.exception("email from <> to reverse alias %s. \n%s", rcpt_to, msg)
|
LOG.e(
|
||||||
|
"email from <> to reverse alias %s. \n%s", rcpt_to, msg.as_string()
|
||||||
|
)
|
||||||
|
|
||||||
is_delivered, smtp_status = handle_reply(envelope, copy_msg, rcpt_to)
|
is_delivered, smtp_status = handle_reply(envelope, copy_msg, rcpt_to)
|
||||||
res.append((is_delivered, smtp_status))
|
res.append((is_delivered, smtp_status))
|
||||||
|
|
Loading…
Reference in a new issue