summaryrefslogtreecommitdiff
path: root/src/mailman/rules/no_senders.py
diff options
context:
space:
mode:
authorMark Sapiro2017-07-26 08:11:33 -0700
committerMark Sapiro2017-07-26 08:11:33 -0700
commitbea94cb9538a55b1376afd42c2ce751efce62cfe (patch)
tree5fba570b0c6f4c0919009cb6f455c18bc732192a /src/mailman/rules/no_senders.py
parent02826321d0430d7ffc1f674eeff4221941689ef7 (diff)
downloadmailman-bea94cb9538a55b1376afd42c2ce751efce62cfe.tar.gz
mailman-bea94cb9538a55b1376afd42c2ce751efce62cfe.tar.zst
mailman-bea94cb9538a55b1376afd42c2ce751efce62cfe.zip
Diffstat (limited to 'src/mailman/rules/no_senders.py')
-rw-r--r--src/mailman/rules/no_senders.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/rules/no_senders.py b/src/mailman/rules/no_senders.py
index 7e8c78fa7..24e5fa5bd 100644
--- a/src/mailman/rules/no_senders.py
+++ b/src/mailman/rules/no_senders.py
@@ -37,9 +37,9 @@ class NoSenders:
if msg.sender:
return False
else:
- msgdata['moderation_action'] = 'discard'
- msgdata['moderation_sender'] = _('None')
- msgdata.setdefault('moderation_reasons', []).append(
- # This will get translated at the point of use.
- 'The message has no valid senders')
+ msgdata['moderation_sender'] = 'N/A'
+ with _.defer_translation():
+ # This will be translated at the point of use.
+ msgdata.setdefault('moderation_reasons', []).append(
+ _('The message has no valid senders'))
return True