summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/docs')
-rw-r--r--src/mailman/rules/docs/moderation.rst15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mailman/rules/docs/moderation.rst b/src/mailman/rules/docs/moderation.rst
index 401004f34..f5ceec29a 100644
--- a/src/mailman/rules/docs/moderation.rst
+++ b/src/mailman/rules/docs/moderation.rst
@@ -54,8 +54,9 @@ information for the eventual moderation chain.
>>> member_rule.check(mlist, member_msg, msgdata)
True
>>> dump_msgdata(msgdata)
- moderation_action: hold
- moderation_sender: aperson@example.com
+ moderation_action : hold
+ moderation_reasons: ['The message comes from a moderated member']
+ moderation_sender : aperson@example.com
Nonmembers
@@ -94,8 +95,9 @@ carries some useful information.
>>> nonmember_rule.check(mlist, nonmember_msg, msgdata)
True
>>> dump_msgdata(msgdata)
- moderation_action: hold
- moderation_sender: bperson@example.com
+ moderation_action : hold
+ moderation_reasons: ['The message is not from a list member']
+ moderation_sender : bperson@example.com
Of course, the nonmember action can be set to defer the decision, in which
case the rule does not match.
@@ -147,8 +149,9 @@ nonmember of the list. The rule also matches.
>>> nonmember_rule.check(mlist, msg, msgdata)
True
>>> dump_msgdata(msgdata)
- moderation_action: hold
- moderation_sender: cperson@example.com
+ moderation_action : hold
+ moderation_reasons: ['The message is not from a list member']
+ moderation_sender : cperson@example.com
>>> dump_list(mlist.members.members, key=memberkey)
<Member: Anne Person <aperson@example.com>