summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-05-09 14:46:15 +0000
committerbwarsaw2002-05-09 14:46:15 +0000
commitdfdf5069fe0c8aae896395d7430cc6e0ecbb8c1d (patch)
tree23ecc59bf435ab5021f6227811fc0ca7fe707724
parentdd18132efd65e2de90efbad7679a760850b9fe74 (diff)
downloadmailman-dfdf5069fe0c8aae896395d7430cc6e0ecbb8c1d.tar.gz
mailman-dfdf5069fe0c8aae896395d7430cc6e0ecbb8c1d.tar.zst
mailman-dfdf5069fe0c8aae896395d7430cc6e0ecbb8c1d.zip
-rw-r--r--cron/disabled10
1 files changed, 6 insertions, 4 deletions
diff --git a/cron/disabled b/cron/disabled
index 0fdb7a3dd..68002df76 100644
--- a/cron/disabled
+++ b/cron/disabled
@@ -106,15 +106,17 @@ def main():
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, None))
+ elif info.score >= mlist.bounce_score_threshold:
disables.append((member, info))
if disables:
mlist.Lock()
try:
for member, info in disables:
- mlist.disableBouncingMember(member, info, msg)
+ if info is None:
+ mlist.setBounceInfo(member, None)
+ else:
+ mlist.disableBouncingMember(member, info, msg)
mlist.Save()
finally:
mlist.Unlock()