summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-10-22 14:31:28 +0000
committerbwarsaw2002-10-22 14:31:28 +0000
commit46d40801e4186dccb5e8ba0db4083d2d9ef9131c (patch)
treee040a2610f9f67c04c0e67fd3d025f51228d00bf
parent190f0f969133e6a70fae2722e172deb8b442dded (diff)
downloadmailman-46d40801e4186dccb5e8ba0db4083d2d9ef9131c.tar.gz
mailman-46d40801e4186dccb5e8ba0db4083d2d9ef9131c.tar.zst
mailman-46d40801e4186dccb5e8ba0db4083d2d9ef9131c.zip
-rw-r--r--Mailman/Handlers/Moderate.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/Handlers/Moderate.py b/Mailman/Handlers/Moderate.py
index a68f8c887..cfd054d7d 100644
--- a/Mailman/Handlers/Moderate.py
+++ b/Mailman/Handlers/Moderate.py
@@ -4,14 +4,14 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
+# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""Posting moderation filter.
@@ -44,7 +44,7 @@ def process(mlist, msg, msgdata):
if mlist.isMember(sender):
break
else:
- sender = None
+ sender = None
if sender:
# If the member's moderation flag is on, then perform the moderation
# action.
@@ -82,7 +82,7 @@ def process(mlist, msg, msgdata):
if matches_p(sender, mlist.accept_these_nonmembers):
return
if matches_p(sender, mlist.hold_these_nonmembers):
- Hold.hold_for_approval(mlist, msg, msgdata, Hold.ModeratedPost)
+ Hold.hold_for_approval(mlist, msg, msgdata, Hold.NonMemberPost)
# No return
if matches_p(sender, mlist.reject_these_nonmembers):
do_reject(mlist)
@@ -98,7 +98,7 @@ def process(mlist, msg, msgdata):
# Accept
return
elif mlist.generic_nonmember_action == 1:
- Hold.hold_for_approval(mlist, msg, msgdata, Hold.ModeratedPost)
+ Hold.hold_for_approval(mlist, msg, msgdata, Hold.NonMemberPost)
elif mlist.generic_nonmember_action == 2:
do_reject(mlist)
elif mlist.generic_nonmember_action == 3: