diff options
| author | Mark Sapiro | 2007-06-22 11:53:02 -0700 |
|---|---|---|
| committer | Mark Sapiro | 2007-06-22 11:53:02 -0700 |
| commit | 70d476211b3c10c5a6b084b775d4c8968fba7cb2 (patch) | |
| tree | 0f97dc7e0976e677332a6d4461e1f24abe6d045b /Mailman/Queue/OutgoingRunner.py | |
| parent | 68474596493180ea20f2c6c41b17e877478491bb (diff) | |
| download | mailman-70d476211b3c10c5a6b084b775d4c8968fba7cb2.tar.gz mailman-70d476211b3c10c5a6b084b775d4c8968fba7cb2.tar.zst mailman-70d476211b3c10c5a6b084b775d4c8968fba7cb2.zip | |
Scrubber.py - Malformed RFC 2047 encoded filename= parameter can have
a null byte or other garbage in the extension. Cleaned this.
- 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 'Mailman/Queue/OutgoingRunner.py')
| -rw-r--r-- | Mailman/Queue/OutgoingRunner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Queue/OutgoingRunner.py b/Mailman/Queue/OutgoingRunner.py index a7ad3584d..1dd780ca4 100644 --- a/Mailman/Queue/OutgoingRunner.py +++ b/Mailman/Queue/OutgoingRunner.py @@ -87,7 +87,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 @@ -99,7 +99,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.fqdn_listname, e.permfailures, msg) + if e.permfailures: + self._queue_bounces(mlist.fqdn_listname, e.permfailures, + msg) # Move temporary failures to the qfiles/retry queue which will # occasionally move them back here for another shot at # delivery. |
