aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Queue/OutgoingRunner.py
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2007-06-22 10:49:27 -0700
committerMark Sapiro <msapiro@value.net>2007-06-22 10:49:27 -0700
commit0e302ec9331aba5a050f5bce45d20701627e6bb5 (patch)
tree6907e205dfd24f8b658debeb80a898c6dc5f3c90 /Mailman/Queue/OutgoingRunner.py
parent6da513d8870677223dc4d52ebe1c1db7349230ee (diff)
downloadmailman2-0e302ec9331aba5a050f5bce45d20701627e6bb5.tar.gz
mailman2-0e302ec9331aba5a050f5bce45d20701627e6bb5.tar.xz
mailman2-0e302ec9331aba5a050f5bce45d20701627e6bb5.zip
Scrubber.py - Cleaned up a few loose ends and incomplete things left after the
previous commit. - Normalized a couple more 'URL:'. - Improved handling of None payloads. - Cleaned up a few charset coercions. OutgoingRunner.py - Made probe bounce processing and queuing of bounces conditional on having some permanent failure(s).
Diffstat (limited to '')
-rw-r--r--Mailman/Queue/OutgoingRunner.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mailman/Queue/OutgoingRunner.py b/Mailman/Queue/OutgoingRunner.py
index 001b6864..0f51b663 100644
--- a/Mailman/Queue/OutgoingRunner.py
+++ b/Mailman/Queue/OutgoingRunner.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2000-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 2000-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
@@ -12,7 +12,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.
"""Outgoing queue runner."""
@@ -91,7 +92,7 @@ class OutgoingRunner(Runner, BounceMixin):
return True
except Errors.SomeRecipientsFailed, e:
# Handle local rejects of probe messages differently.
- if msgdata.get('probe_token'):
+ if msgdata.get('probe_token') and e.permfailures:
self._probe_bounce(mlist, msgdata['probe_token'])
else:
# Delivery failed at SMTP time for some or all of the
@@ -103,7 +104,9 @@ class OutgoingRunner(Runner, BounceMixin):
# this is what's sent to the user in the probe message. Maybe
# we should craft a bounce-like message containing information
# about the permanent SMTP failure?
- self._queue_bounces(mlist.internal_name(), e.permfailures, msg)
+ if e.permfailures:
+ self._queue_bounces(mlist.internal_name(), e.permfailures,
+ msg)
# Move temporary failures to the qfiles/retry queue which will
# occasionally move them back here for another shot at
# delivery.