summaryrefslogtreecommitdiff
path: root/src/mailman/runners/nntp.py
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/runners/nntp.py
parent2410fe8c2578fbd11275cfc7fc1897173eecd41a (diff)
downloadmailman-fdfc98239de2cfdfff6c62a5bb9d49abc8d3722e.tar.gz
mailman-fdfc98239de2cfdfff6c62a5bb9d49abc8d3722e.tar.zst
mailman-fdfc98239de2cfdfff6c62a5bb9d49abc8d3722e.zip
Diffstat (limited to 'src/mailman/runners/nntp.py')
-rw-r--r--src/mailman/runners/nntp.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mailman/runners/nntp.py b/src/mailman/runners/nntp.py
index 8339c735e..4b6cd414f 100644
--- a/src/mailman/runners/nntp.py
+++ b/src/mailman/runners/nntp.py
@@ -35,7 +35,7 @@ from cStringIO import StringIO
from mailman.config import config
from mailman.core.runner import Runner
-from mailman.interfaces.nntp import NewsModeration
+from mailman.interfaces.nntp import NewsgroupModeration
COMMA = ','
COMMASPACE = ', '
@@ -106,8 +106,8 @@ def prepare_message(mlist, msg, msgdata):
# software to accept the posting, and not forward it on to the n.g.'s
# moderation address. The posting would not have gotten here if it hadn't
# already been approved. 1 == open list, mod n.g., 2 == moderated
- if mlist.news_moderation in (NewsModeration.open_moderated,
- NewsModeration.moderated):
+ if mlist.newsgroup_moderation in (NewsgroupModeration.open_moderated,
+ NewsgroupModeration.moderated):
del msg['approved']
msg['Approved'] = mlist.posting_address
# Should we restore the original, non-prefixed subject for gatewayed
@@ -116,9 +116,7 @@ def prepare_message(mlist, msg, msgdata):
# came from mailing list user.
stripped_subject = msgdata.get('stripped_subject',
msgdata.get('original_subject'))
- # XXX 2012-03-31 BAW: rename news_prefix_subject_too to nntp_. This
- # requires a schema change.
- if not mlist.news_prefix_subject_too and stripped_subject is not None:
+ if not mlist.nntp_prefix_subject_too and stripped_subject is not None:
del msg['subject']
msg['subject'] = stripped_subject
# Add the appropriate Newsgroups header. Multiple Newsgroups headers are