aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-06-23 10:49:39 -0700
committerMark Sapiro <mark@msapiro.net>2008-06-23 10:49:39 -0700
commitac9822046997c7719ce71e36e295ef1382f7eb6a (patch)
tree63b82e78c1b9cbef9359edfe9ee9aa79737e1cd0
parent7ad9af1703e5762cc7cb4d2d02303975b2e6f67a (diff)
downloadmailman2-ac9822046997c7719ce71e36e295ef1382f7eb6a.tar.gz
mailman2-ac9822046997c7719ce71e36e295ef1382f7eb6a.tar.xz
mailman2-ac9822046997c7719ce71e36e295ef1382f7eb6a.zip
Added check for gateway_to_news before holding for ModeratedNewsgroup.
-rw-r--r--Mailman/Handlers/Hold.py4
-rw-r--r--NEWS2
2 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py
index d4af8f9a..2b8a084d 100644
--- a/Mailman/Handlers/Hold.py
+++ b/Mailman/Handlers/Hold.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -188,7 +188,7 @@ def process(mlist, msg, msgdata):
#
# Are we gatewaying to a moderated newsgroup and is this list the
# moderator's address for the group?
- if mlist.news_moderation == 2:
+ if mlist.gateway_to_news and mlist.news_moderation == 2:
hold_for_approval(mlist, msg, msgdata, ModeratedNewsgroup)
diff --git a/NEWS b/NEWS
index b061706e..3912fac3 100644
--- a/NEWS
+++ b/NEWS
@@ -83,6 +83,8 @@ Here is a history of user visible changes to Mailman.
- Merged the Catalan i18n from the Mailman Catalan Translation Team.
+ - Added check for gateway_to_news before holding for ModeratedNewsgroup.
+
Miscellaneous
- Brad Knowles' mailman daily status report script updated to 0.0.18.