settings: Send email after deactivating user.

This adds a feature where an admin can choose to send an email
with custom content to an user after they deactivated them.

Fixes #18943.
This commit is contained in:
Julia Bichler
2021-11-27 15:26:09 +01:00
committed by Tim Abbott
parent b8a760b14e
commit 0a278c39d2
16 changed files with 238 additions and 6 deletions

View File

@@ -230,7 +230,7 @@ python_rules = RuleList(
rules=[
{
"pattern": "subject|SUBJECT",
"exclude_pattern": "subject to the|email|outbox",
"exclude_pattern": "subject to the|email|outbox|account deactivation",
"description": "avoid subject as a var",
"good_lines": ["topic_name"],
"bad_lines": ['subject="foo"', " MAX_SUBJECT_LEN"],