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/news-moderation.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/rules/docs/news-moderation.rst b/src/mailman/rules/docs/news-moderation.rst
index c695740fa..651c21bb4 100644
--- a/src/mailman/rules/docs/news-moderation.rst
+++ b/src/mailman/rules/docs/news-moderation.rst
@@ -16,8 +16,8 @@ directly to the mailing list.
Set the list configuration variable to enable newsgroup moderation.
- >>> from mailman.interfaces.nntp import NewsModeration
- >>> mlist.news_moderation = NewsModeration.moderated
+ >>> from mailman.interfaces.nntp import NewsgroupModeration
+ >>> mlist.newsgroup_moderation = NewsgroupModeration.moderated
And now all messages will match the rule.
@@ -32,6 +32,6 @@ And now all messages will match the rule.
When moderation is turned off, the rule does not match.
- >>> mlist.news_moderation = NewsModeration.none
+ >>> mlist.news_moderation = NewsgroupModeration.none
>>> rule.check(mlist, msg, {})
False