summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs
diff options
context:
space:
mode:
authorBarry Warsaw2012-04-08 19:40:38 -0400
committerBarry Warsaw2012-04-08 19:40:38 -0400
commitfdfc98239de2cfdfff6c62a5bb9d49abc8d3722e (patch)
tree15944f47693c8dbf3fd80292112d5f9d1ccac4d5 /src/mailman/rules/docs
parent2410fe8c2578fbd11275cfc7fc1897173eecd41a (diff)
downloadmailman-fdfc98239de2cfdfff6c62a5bb9d49abc8d3722e.tar.gz
mailman-fdfc98239de2cfdfff6c62a5bb9d49abc8d3722e.tar.zst
mailman-fdfc98239de2cfdfff6c62a5bb9d49abc8d3722e.zip
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