mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 09:13:45 +08:00
fix
This commit is contained in:
parent
54f806fc4d
commit
dd591c7437
1 changed files with 5 additions and 1 deletions
|
@ -1597,7 +1597,11 @@ def handle(envelope: Envelope) -> str:
|
|||
return handle_bounce(envelope, email_log, msg)
|
||||
|
||||
# iCloud returns the bounce with mail_from=bounce+{email_log_id}+@simplelogin.co, rcpt_to=alias
|
||||
if len(rcpt_tos) == 1 and mail_from.startswith(BOUNCE_PREFIX):
|
||||
if (
|
||||
len(rcpt_tos) == 1
|
||||
and mail_from.startswith(BOUNCE_PREFIX)
|
||||
and mail_from.endswith(BOUNCE_SUFFIX)
|
||||
):
|
||||
email_log_id = parse_id_from_bounce(mail_from)
|
||||
email_log = EmailLog.get(email_log_id)
|
||||
alias = Alias.get_by(email=rcpt_tos[0])
|
||||
|
|
Loading…
Reference in a new issue