mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 08:13:16 +08:00
fix
This commit is contained in:
parent
89218fab7f
commit
b711743d6e
1 changed files with 2 additions and 2 deletions
|
@ -1902,11 +1902,11 @@ def handle_unsubscribe(envelope: Envelope, msg: Message) -> str:
|
|||
alias_id = int(subject)
|
||||
alias = Alias.get(alias_id)
|
||||
except Exception:
|
||||
LOG.w("Cannot parse alias from subject %s", msg[headers.SUBJECT])
|
||||
LOG.w("Wrong format subject %s", msg[headers.SUBJECT])
|
||||
return status.E507
|
||||
|
||||
if not alias:
|
||||
LOG.w("Cannot parse alias from subject %s", subject)
|
||||
LOG.w("Cannot get alias from subject %s", subject)
|
||||
return status.E508
|
||||
|
||||
mail_from = envelope.mail_from
|
||||
|
|
Loading…
Reference in a new issue