------------------------------------------------------------
revno: 1321
committer: Mark Sapiro <msap...@value.net>
branch nick: 2.1
timestamp: Thu 2011-10-13 21:26:53 -0700
message:
  Fixed cron/checkdbs to report unsubscriptions waiting approval.  Bug #873821.
modified:
  NEWS
  cron/checkdbs


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'NEWS'
--- NEWS	2011-10-14 04:06:31 +0000
+++ NEWS	2011-10-14 04:26:53 +0000
@@ -71,6 +71,9 @@
 
   Bug Fixes and other patches
 
+    - Fixed cron/checkdbs to report unsubscriptions waiting approval.
+      Bug #873821.
+
     - The fix for BUG #266220 (sf1181161) has been enhanced so that if there
       is a pathological HTML part such that the Approved: password text isn't
       found, but it is found after stripping out HTML tags, the post is

=== modified file 'cron/checkdbs'
--- cron/checkdbs	2005-08-27 01:40:17 +0000
+++ cron/checkdbs	2011-10-14 04:26:53 +0000
@@ -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 @@
             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:'))

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to