diff options
Diffstat (limited to 'src/mailman/rules/implicit_dest.py')
| -rw-r--r-- | src/mailman/rules/implicit_dest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mailman/rules/implicit_dest.py b/src/mailman/rules/implicit_dest.py index 7e6658d49..26729a86e 100644 --- a/src/mailman/rules/implicit_dest.py +++ b/src/mailman/rules/implicit_dest.py @@ -88,4 +88,9 @@ class ImplicitDestination: if re.match(escaped, recipient, re.IGNORECASE): return False # Nothing matched. + msgdata['moderation_sender'] = msg.sender + with _.defer_translation(): + # This will be translated at the point of use. + msgdata.setdefault('moderation_reasons', []).append( + _('Message has implicit destination')) return True |
