diff options
| author | bwarsaw | 2000-05-08 22:24:42 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-05-08 22:24:42 +0000 |
| commit | 845c2dbc3267358e384cd04f2e1077d4ef00caed (patch) | |
| tree | 6f51865e87439db5e5275813d38d16754816f757 | |
| parent | 5c9d6d2bcc30bc160b9bf52a9f0d86b2489b77bc (diff) | |
| download | mailman-845c2dbc3267358e384cd04f2e1077d4ef00caed.tar.gz mailman-845c2dbc3267358e384cd04f2e1077d4ef00caed.tar.zst mailman-845c2dbc3267358e384cd04f2e1077d4ef00caed.zip | |
pending_requests(): Backwards compatibility code to handle the tuple
representing the record for held messages. In pre-2.0b3 it was a
5-tuple, but it is now a 6-tuple.
| -rwxr-xr-x | cron/checkdbs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cron/checkdbs b/cron/checkdbs index cf5dae093..e80f58f35 100755 --- a/cron/checkdbs +++ b/cron/checkdbs @@ -75,7 +75,12 @@ def pending_requests(mlist): if first: pending.append('\nPending posts:') first = 0 - when, sender, subject, reason, text = mlist.GetRecord(id) + info = mlist.GetRecord(id) + if len(info) == 5: + # pre-2.0beta3 compatibility + when, sender, subject, reason, text = mlist.GetRecord(id) + else: + when, sender, subject, reason, text, msgdata = mlist.GetRecord(id) pending.append(' From: %s on %s\n Cause: %s' % (sender, time.ctime(when), reason)) pending.append('') |
