diff options
| author | Barry Warsaw | 2011-04-27 21:48:03 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-04-27 21:48:03 -0400 |
| commit | 4185e010820df965fdded840cd088ac7d0f49b53 (patch) | |
| tree | 2cb4efeb43e2a297202ae1ac2747c0773c0b59ac /src/mailman/queue/bounce.py | |
| parent | 50823ea9d544114603b3f5d814914908b27749d6 (diff) | |
| parent | c2b79a2461501c6a83f02a11dba4d847f34e1b6e (diff) | |
| download | mailman-4185e010820df965fdded840cd088ac7d0f49b53.tar.gz mailman-4185e010820df965fdded840cd088ac7d0f49b53.tar.zst mailman-4185e010820df965fdded840cd088ac7d0f49b53.zip | |
Restore the bounce detectors tests which previously got accidentally removed
in a merge mistake. Also, make the tests pass <wink>.
Also, refactor find_components() into a separate function scan_module() so
that we can just extract the components from a single module.
Diffstat (limited to 'src/mailman/queue/bounce.py')
| -rw-r--r-- | src/mailman/queue/bounce.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/queue/bounce.py b/src/mailman/queue/bounce.py index 968659352..6c8b90fed 100644 --- a/src/mailman/queue/bounce.py +++ b/src/mailman/queue/bounce.py @@ -29,7 +29,7 @@ from lazr.config import as_timedelta from mailman.config import config from mailman.core.i18n import _ from mailman.email.utils import split_email -from mailman.interfaces.bounce import NonFatal +from mailman.interfaces.bounce import Stop from mailman.queue import Runner @@ -192,7 +192,7 @@ class BounceRunner(Runner, BounceMixin): addrs = verp_bounce(mlist, msg) if addrs: # We have an address, but check if the message is non-fatal. - if scan_messages(mlist, msg) is NonFatal: + if scan_messages(mlist, msg) is Stop: return else: # See if this was a probe message. @@ -203,7 +203,7 @@ class BounceRunner(Runner, BounceMixin): # That didn't give us anything useful, so try the old fashion # bounce matching modules. addrs = scan_messages(mlist, msg) - if addrs is NonFatal: + if addrs is Stop: # This is a recognized, non-fatal notice. Ignore it. return # If that still didn't return us any useful addresses, then send it on |
