summaryrefslogtreecommitdiff
path: root/src/mailman/chains/reject.py
diff options
context:
space:
mode:
authorBarry Warsaw2017-07-26 23:24:18 +0000
committerBarry Warsaw2017-07-26 23:24:18 +0000
commitade94e8f833a9472ba9be52a08f4e2f381e7a212 (patch)
tree5fba570b0c6f4c0919009cb6f455c18bc732192a /src/mailman/chains/reject.py
parent02826321d0430d7ffc1f674eeff4221941689ef7 (diff)
parentbea94cb9538a55b1376afd42c2ce751efce62cfe (diff)
downloadmailman-ade94e8f833a9472ba9be52a08f4e2f381e7a212.tar.gz
mailman-ade94e8f833a9472ba9be52a08f4e2f381e7a212.tar.zst
mailman-ade94e8f833a9472ba9be52a08f4e2f381e7a212.zip
Diffstat (limited to 'src/mailman/chains/reject.py')
-rw-r--r--src/mailman/chains/reject.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/chains/reject.py b/src/mailman/chains/reject.py
index 3284bba9f..31f66c8fa 100644
--- a/src/mailman/chains/reject.py
+++ b/src/mailman/chains/reject.py
@@ -20,7 +20,7 @@
import logging
from mailman.app.bounces import bounce_message
-from mailman.chains.base import TerminalChainBase
+from mailman.chains.base import TerminalChainBase, format_reasons
from mailman.core.i18n import _
from mailman.interfaces.chain import RejectEvent
from mailman.interfaces.pipeline import RejectMessage
@@ -65,7 +65,7 @@ reasons:
The original message as received by Mailman is attached.
""").format(
list_name=mlist.display_name, # noqa: E122
- reasons=NEWLINE.join(reasons)
+ reasons=NEWLINE.join(format_reasons(reasons))
))
bounce_message(mlist, msg, error)
log.info('REJECT: %s', msg.get('message-id', 'n/a'))