summaryrefslogtreecommitdiff
path: root/src/mailman/chains/hold.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-11-28 17:20:25 -0500
committerBarry Warsaw2016-11-28 17:20:25 -0500
commit503cd08131bd73388af8cf0a27fd91d2e55501c9 (patch)
treea5910f45750ebbded0ca23bbce7bb994ec7f2cb8 /src/mailman/chains/hold.py
parentffc8ed1347121079c047ec454f94e27bf54a9d42 (diff)
parent88212f9d5c9a13e8e723d90a42f00d0f9b66d929 (diff)
downloadmailman-503cd08131bd73388af8cf0a27fd91d2e55501c9.tar.gz
mailman-503cd08131bd73388af8cf0a27fd91d2e55501c9.tar.zst
mailman-503cd08131bd73388af8cf0a27fd91d2e55501c9.zip
Diffstat (limited to 'src/mailman/chains/hold.py')
-rw-r--r--src/mailman/chains/hold.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/chains/hold.py b/src/mailman/chains/hold.py
index f111aee3c..42fed66a6 100644
--- a/src/mailman/chains/hold.py
+++ b/src/mailman/chains/hold.py
@@ -142,8 +142,9 @@ class HoldChain(TerminalChainBase):
rule_misses = msgdata.get('rule_misses')
if rule_misses:
msg['X-Mailman-Rule-Misses'] = SEMISPACE.join(rule_misses)
+ reasons = msgdata.get('moderation_reasons', ['n/a'])
# Hold the message by adding it to the list's request database.
- request_id = hold_message(mlist, msg, msgdata, None)
+ request_id = hold_message(mlist, msg, msgdata, SEMISPACE.join(reasons))
# Calculate a confirmation token to send to the author of the
# message.
pendable = HeldMessagePendable(id=request_id)