summaryrefslogtreecommitdiff
path: root/cron/checkdbs
diff options
context:
space:
mode:
authorbwarsaw2001-11-09 23:53:01 +0000
committerbwarsaw2001-11-09 23:53:01 +0000
commit56bbbe2ec3401c5ea0b7a634a64afdc7b1b0f562 (patch)
treedb3a5ceed5173b61b7821a77445d69e8dc55255f /cron/checkdbs
parent76fe8389825d592e46de4116c8e1aba9dc1c5b0a (diff)
downloadmailman-56bbbe2ec3401c5ea0b7a634a64afdc7b1b0f562.tar.gz
mailman-56bbbe2ec3401c5ea0b7a634a64afdc7b1b0f562.tar.zst
mailman-56bbbe2ec3401c5ea0b7a634a64afdc7b1b0f562.zip
pending_requests(): Subscription ID records unpack to a 6 tuple now,
which includes the fullname, but also watch out for older records which don't include the fullname.
Diffstat (limited to 'cron/checkdbs')
-rwxr-xr-xcron/checkdbs11
1 files changed, 9 insertions, 2 deletions
diff --git a/cron/checkdbs b/cron/checkdbs
index 7f0b2d4ea..721a499e9 100755
--- a/cron/checkdbs
+++ b/cron/checkdbs
@@ -79,8 +79,15 @@ def pending_requests(mlist):
if first:
pending.append(_('Pending subscriptions:'))
first = 0
- when, addr, passwd, digest, lang = mlist.GetRecord(id)
- pending.append(' %s %s' % (addr, time.ctime(when)))
+ info = mlist.GetRecord(id)
+ if len(info) == 5:
+ # pre-2.0beta3 compatibility
+ when, addr, passwd, digest, lang = info
+ fullname = ''
+ else:
+ when, addr, fullname, passwd, digest, lang = info
+ fullname = '<%s>' % fullname
+ pending.append(' %s %s %s' % (fullname, addr, time.ctime(when)))
first = 1
for id in mlist.GetHeldMessageIds():
if first: