From 4009daaef9d84ccdd50de2eb1d03c31cae1c8b73 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 27 Dec 2001 06:54:24 +0000 Subject: ProcessConfirmation(): Add handling of Pending.RE_ENABLE to the big confirmation processing switch. This sure does call out for an object-oriented approach. ;) --- Mailman/MailList.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Mailman/MailList.py b/Mailman/MailList.py index ccadbefdc..494095f68 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -62,6 +62,7 @@ from Mailman.TopicMgr import TopicMgr from Mailman import Gui # other useful classes +from Mailman import MemberAdaptor from Mailman.OldStyleMemberships import OldStyleMemberships from Mailman import Message from Mailman import Pending @@ -972,6 +973,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, # via the admindb page. syslog('error', 'Could not process HELD_MESSAGE: %s', id) return (op,) + elif op == Pending.RE_ENABLE: + member = data[1] + self.setDeliveryStatus(member, MemberAdaptor.ENABLED) + return op, member def ConfirmUnsubscription(self, addr, lang=None, remote=None): if lang is None: -- cgit v1.3.1