do not automatically disable alias if it cannot be disabled
This commit is contained in:
parent
2fb4b38e28
commit
c8c06aa10e
|
@ -809,6 +809,9 @@ def handle_bounce(contact: Contact, alias: Alias, msg: Message, user: User):
|
||||||
address,
|
address,
|
||||||
contact.website_email,
|
contact.website_email,
|
||||||
)
|
)
|
||||||
|
if alias.cannot_be_disabled:
|
||||||
|
LOG.warning("%s cannot be disabled", alias)
|
||||||
|
else:
|
||||||
alias.enabled = False
|
alias.enabled = False
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue