------------------------------------------------------------
revno: 1031
committer: Mark Sapiro <[EMAIL PROTECTED]>
branch nick: 2.1
timestamp: Thu 2007-12-06 23:17:29 -0800
message:
cron/disabled - Fixed to check for stale bounce info before disabling
a member. Stale bounce info is reset.
modified:
cron/disabled
=== modified file 'cron/disabled'
--- a/cron/disabled 2005-08-27 01:40:17 +0000
+++ b/cron/disabled 2007-12-07 07:17:29 +0000
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 2001-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2007 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -14,7 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""Process disabled members, recommended once per day.
@@ -154,14 +155,17 @@
# disabled. This is a sweep through the membership catching
# situations where they've bounced a bunch, then the list admin
# lowered the threshold, but we haven't (yet) seen more bounces
- # from the member. Note: we won't worry about stale information
- # or anything else since the normal bounce processing code will
- # handle that.
+ # from the member.
disables = []
for member in mlist.getBouncingMembers():
if mlist.getDeliveryStatus(member) <> MemberAdaptor.ENABLED:
continue
info = mlist.getBounceInfo(member)
+ if (Utils.midnight(info.date) + mlist.bounce_info_stale_after
+ < Utils.midnight()):
+ # Bounce info is stale; reset it.
+ mlist.setBounceInfo(member, None)
+ continue
if info.score >= mlist.bounce_score_threshold:
disables.append((member, info))
if disables:
--
https://code.launchpad.net/~mailman-coders/mailman/2.1
You are receiving this branch notification because you are subscribed to it.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+subscription/mailman-checkins.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org