diff options
author | Mark Sapiro <msapiro@value.net> | 2011-10-13 21:26:53 -0700 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2011-10-13 21:26:53 -0700 |
commit | ad793aa56f6e019efd3cb67cb6522fa6920f1249 (patch) | |
tree | 3dd5153fbe92bb67fa7f42237af4a88663130150 /cron/checkdbs | |
parent | 9d0b163d77434a4bc7fbc7e26c7ceeea781c1dc6 (diff) | |
download | mailman2-ad793aa56f6e019efd3cb67cb6522fa6920f1249.tar.gz mailman2-ad793aa56f6e019efd3cb67cb6522fa6920f1249.tar.xz mailman2-ad793aa56f6e019efd3cb67cb6522fa6920f1249.zip |
Fixed cron/checkdbs to report unsubscriptions waiting approval. Bug #873821.
Diffstat (limited to 'cron/checkdbs')
-rwxr-xr-x | cron/checkdbs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cron/checkdbs b/cron/checkdbs index 12698109..e776f15d 100755 --- a/cron/checkdbs +++ b/cron/checkdbs @@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 1998-2003 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2011 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 @@ -14,7 +14,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """Check for pending admin requests and mail the list owners if necessary. @@ -149,6 +150,13 @@ def pending_requests(mlist): fullname = ' (%s)' % fullname pending.append(' %s%s %s' % (addr, fullname, time.ctime(when))) first = 1 + for id in mlist.GetUnsubscriptionIds(): + if first: + pending.append(_('Pending unsubscriptions:')) + first = 0 + addr = mlist.GetRecord(id) + pending.append(' %s' % addr) + first = 1 for id in mlist.GetHeldMessageIds(): if first: pending.append(_('\nPending posts:')) |