mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
add more logging
This commit is contained in:
parent
582c92bbcd
commit
6faaacc972
1 changed files with 9 additions and 2 deletions
|
@ -1094,11 +1094,18 @@ def handle(envelope: Envelope, smtp: SMTP) -> str:
|
|||
# Reply case
|
||||
# recipient starts with "reply+" or "ra+" (ra=reverse-alias) prefix
|
||||
if rcpt_to.startswith("reply+") or rcpt_to.startswith("ra+"):
|
||||
LOG.debug(">>> Reply phase %s -> %s", envelope.mail_from, rcpt_to)
|
||||
LOG.debug(
|
||||
">>> Reply phase %s(%s) -> %s", envelope.mail_from, msg["From"], rcpt_to
|
||||
)
|
||||
is_delivered, smtp_status = handle_reply(envelope, smtp, msg, rcpt_to)
|
||||
res.append((is_delivered, smtp_status))
|
||||
else: # Forward case
|
||||
LOG.debug(">>> Forward phase %s -> %s", envelope.mail_from, rcpt_to)
|
||||
LOG.debug(
|
||||
">>> Forward phase %s(%s) -> %s",
|
||||
envelope.mail_from,
|
||||
msg["From"],
|
||||
rcpt_to,
|
||||
)
|
||||
for is_delivered, smtp_status in handle_forward(
|
||||
envelope, smtp, msg, rcpt_to
|
||||
):
|
||||
|
|
Loading…
Reference in a new issue