summaryrefslogtreecommitdiff
path: root/Mailman/Bouncer.py
diff options
context:
space:
mode:
authorbwarsaw2002-08-15 17:15:23 +0000
committerbwarsaw2002-08-15 17:15:23 +0000
commit6b662bde2d2729020a3fe495f7469e2eb6a2d175 (patch)
tree07f3e5c937aa03b0be80b240e2140ac16915bdec /Mailman/Bouncer.py
parenta6da7badfd5a96dafa446e3934c5625c209e357a (diff)
downloadmailman-6b662bde2d2729020a3fe495f7469e2eb6a2d175.tar.gz
mailman-6b662bde2d2729020a3fe495f7469e2eb6a2d175.tar.zst
mailman-6b662bde2d2729020a3fe495f7469e2eb6a2d175.zip
Diffstat (limited to 'Mailman/Bouncer.py')
-rw-r--r--Mailman/Bouncer.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py
index 90ff6cec6..b7f50f1f1 100644
--- a/Mailman/Bouncer.py
+++ b/Mailman/Bouncer.py
@@ -57,10 +57,13 @@ class _BounceInfo:
self.cookie = cookie
self.reset(score, date, noticesleft)
- def reset(self, score, date, noticesleft):
+ def reset(self, score=0, date=None, noticesleft=None):
+ if date is None:
+ date = ZEROHOUR_PLUSONEDAY
self.score = score
self.date = date
- self.noticesleft = noticesleft
+ if noticesleft is not None:
+ self.noticesleft = noticesleft
self.lastnotice = ZEROHOUR_PLUSONEDAY
def __repr__(self):
@@ -136,7 +139,7 @@ class Bouncer:
lastbounce = Utils.midnight(info.date)
if lastbounce + self.bounce_info_stale_after < now:
# Information is stale, so simply reset it
- info.reset(weight, today, 0)
+ info.reset(noticesleft=mlist.bounce_you_are_disabled_warnings)
syslog('bounce', '%s: %s has stale bounce info, resetting',
self.internal_name(), member)
else: