From f89fef03b3c1034f8ef8169554e6a29d79f6beb7 Mon Sep 17 00:00:00 2001 From: klm Date: Thu, 21 May 1998 15:48:43 +0000 Subject: .RegisterBounce(): I think this corrects the bounce log reporting of the remaining number of bounces a member is allowed (within the stipulated time frame) before exceeding the limit. If this is right, with the other bounce-handling refinements i feel a lot more confident about predicatable, well-mannered behavior from the bounce management stuff... --- modules/mm_bouncer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/mm_bouncer.py b/modules/mm_bouncer.py index b0174dec7..61d3c2533 100644 --- a/modules/mm_bouncer.py +++ b/modules/mm_bouncer.py @@ -1,6 +1,6 @@ "Handle delivery bounce messages, doing filtering when list is set for it." -__version__ = "$Revision: 532 $" +__version__ = "$Revision: 533 $" # It's possible to get the mail-list senders address (list-admin) in the # bounce list. You probably don't want to have list mail sent to that @@ -88,12 +88,13 @@ class Bouncer: return else: post_count = (self.minimum_post_count_before_bounce_action - - self.post_id - inf[1]) + (self.post_id - inf[1])) if post_count < 0: post_count = 0 remain = self.minimum_removal_date * 24 * 60 * 60 - difference self.LogMsg("bounce", - report + ("%d more posts, %d more secs" + report + ("%d remaining delivery failures" + " within %d secs" % (post_count, remain))) self.Save() return -- cgit v1.3.1