aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
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 /Mailman/Handlers
parent7ad9af1703e5762cc7cb4d2d02303975b2e6f67a (diff)
downloadmailman2-ac9822046997c7719ce71e36e295ef1382f7eb6a.tar.gz
mailman2-ac9822046997c7719ce71e36e295ef1382f7eb6a.tar.xz
mailman2-ac9822046997c7719ce71e36e295ef1382f7eb6a.zip
Added check for gateway_to_news before holding for ModeratedNewsgroup.
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/Hold.py4
1 files changed, 2 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)