aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbwarsaw <>2004-02-10 22:51:08 +0000
committerbwarsaw <>2004-02-10 22:51:08 +0000
commit105d3bcb24e40e8d1221399613eda2d98c215403 (patch)
tree807310e4311b009e67705d1c9845d1aeeed59899
parent9655de09e3887533757ad4b78e04bb10cb99aae2 (diff)
downloadmailman2-105d3bcb24e40e8d1221399613eda2d98c215403.tar.gz
mailman2-105d3bcb24e40e8d1221399613eda2d98c215403.tar.xz
mailman2-105d3bcb24e40e8d1221399613eda2d98c215403.zip
hold_for_approval(): Convert to the new pending database interface.
-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 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 <list>-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