diff options
| author | Mark Sapiro | 2017-07-26 08:11:33 -0700 |
|---|---|---|
| committer | Mark Sapiro | 2017-07-26 08:11:33 -0700 |
| commit | bea94cb9538a55b1376afd42c2ce751efce62cfe (patch) | |
| tree | 5fba570b0c6f4c0919009cb6f455c18bc732192a /src/mailman/rules/loop.py | |
| parent | 02826321d0430d7ffc1f674eeff4221941689ef7 (diff) | |
| download | mailman-bea94cb9538a55b1376afd42c2ce751efce62cfe.tar.gz mailman-bea94cb9538a55b1376afd42c2ce751efce62cfe.tar.zst mailman-bea94cb9538a55b1376afd42c2ce751efce62cfe.zip | |
Diffstat (limited to 'src/mailman/rules/loop.py')
| -rw-r--r-- | src/mailman/rules/loop.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mailman/rules/loop.py b/src/mailman/rules/loop.py index ac4d00461..b50b55ed6 100644 --- a/src/mailman/rules/loop.py +++ b/src/mailman/rules/loop.py @@ -37,4 +37,11 @@ class Loop: # Has this message already been posted to this list? list_posts = set(value.strip().lower() for value in msg.get_all('list-post', [])) - return mlist.posting_address in list_posts + if mlist.posting_address in list_posts: + msgdata['moderation_sender'] = msg.sender + with _.defer_translation(): + # This will be translated at the point of use. + msgdata.setdefault('moderation_reasons', []).append( + _('Message has already been posted to this list')) + return True + return False |
