summaryrefslogtreecommitdiff
path: root/mailman/queue/bounce.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-10-06 22:07:04 -0400
committerBarry Warsaw2008-10-06 22:07:04 -0400
commitc7340d712c640fa5992518a7cf16272f634abccc (patch)
tree99057710fbc7b92eaa1720daea4c3a6cd5929cf3 /mailman/queue/bounce.py
parent6f4351721559e8b7b577d3a01216fec88121ed11 (diff)
parentf0c9fad6372a645981b5c72fe02a6ad62f35790f (diff)
downloadmailman-c7340d712c640fa5992518a7cf16272f634abccc.tar.gz
mailman-c7340d712c640fa5992518a7cf16272f634abccc.tar.zst
mailman-c7340d712c640fa5992518a7cf16272f634abccc.zip
branch merge
Diffstat (limited to 'mailman/queue/bounce.py')
-rw-r--r--mailman/queue/bounce.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mailman/queue/bounce.py b/mailman/queue/bounce.py
index cfd86be60..0c5788174 100644
--- a/mailman/queue/bounce.py
+++ b/mailman/queue/bounce.py
@@ -51,7 +51,7 @@ class BounceMixin:
#
# today is itself a 3-tuple of (year, month, day)
#
- # Every once in a while (see _doperiodic()), the bounce runner cracks
+ # Every once in a while (see _do_periodic()), the bounce runner cracks
# open the file, reads all the records and registers all the bounces.
# Then it truncates the file and continues on. We don't need to lock
# the bounce event file because bounce qrunners are single threaded
@@ -123,11 +123,11 @@ class BounceMixin:
os.unlink(self._bounce_events_file)
self._bouncecnt = 0
- def _cleanup(self):
+ def _clean_up(self):
if self._bouncecnt > 0:
self._register_bounces()
- def _doperiodic(self):
+ def _do_periodic(self):
now = datetime.datetime.now()
if self._nextaction > now or self._bouncecnt == 0:
return
@@ -218,11 +218,11 @@ class BounceRunner(Runner, BounceMixin):
addrs = filter(None, addrs)
self._queue_bounces(mlist.fqdn_listname, addrs, msg)
- _doperiodic = BounceMixin._doperiodic
+ _do_periodic = BounceMixin._do_periodic
- def _cleanup(self):
- BounceMixin._cleanup(self)
- Runner._cleanup(self)
+ def _clean_up(self):
+ BounceMixin._clean_up(self)
+ Runner._clean_up(self)