diff options
| author | bwarsaw | 2002-05-07 14:17:42 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-05-07 14:17:42 +0000 |
| commit | c79676a2e91720610c19b6edc1b288ef2661838a (patch) | |
| tree | 5f9c244583949255dc4fca4dc56a04751fecb31f | |
| parent | 9377934942bd83cd4dd2f81e0a679d4fbe0af4e0 (diff) | |
| download | mailman-c79676a2e91720610c19b6edc1b288ef2661838a.tar.gz mailman-c79676a2e91720610c19b6edc1b288ef2661838a.tar.zst mailman-c79676a2e91720610c19b6edc1b288ef2661838a.zip | |
| -rw-r--r-- | cron/disabled | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cron/disabled b/cron/disabled index 31c1ca4f3..0fdb7a3dd 100644 --- a/cron/disabled +++ b/cron/disabled @@ -46,6 +46,7 @@ from Mailman import mm_cfg from Mailman import Utils from Mailman import MailList from Mailman import MemberAdaptor +from Mailman.Bouncer import _BounceInfo from Mailman.Logging.Syslog import syslog from Mailman.i18n import _ @@ -103,6 +104,10 @@ def main(): if mlist.getDeliveryStatus(member) <> MemberAdaptor.ENABLED: continue info = mlist.getBounceInfo(member) + if not isinstance(info, _BounceInfo): + # It's old bounce data, which is useless to us. Reset. + mlist.setBounceInfo(member, None) + continue if info.score >= mlist.bounce_score_threshold: disables.append((member, info)) if disables: |
