From 105d3bcb24e40e8d1221399613eda2d98c215403 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Tue, 10 Feb 2004 22:51:08 +0000 Subject: hold_for_approval(): Convert to the new pending database interface. --- Mailman/Handlers/Hold.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py index 5953aacc..0a6a7d31 100644 --- a/Mailman/Handlers/Hold.py +++ b/Mailman/Handlers/Hold.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2003 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2004 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 @@ -230,7 +230,7 @@ def hold_for_approval(mlist, msg, msgdata, exc): # # This message should appear to come from -admin so as to handle any # bounce processing that might be needed. - cookie = Pending.new(Pending.HELD_MESSAGE, id) + cookie = mlist.pend_new(Pending.HELD_MESSAGE, id) if not fromusenet and ackp(msg) and mlist.respond_to_post_requests and \ mlist.autorespondToSender(sender): # Get a confirmation cookie -- cgit v1.2.3