summaryrefslogtreecommitdiff
path: root/src/mailman/queue/bounce.py
diff options
context:
space:
mode:
authorBarry Warsaw2010-08-07 11:23:07 -0400
committerBarry Warsaw2010-08-07 11:23:07 -0400
commit83f78ec26541ab0c7b91794ab6b3bc1d8285f9a9 (patch)
treea4ce3eedddf98e4fd6cc565fd0773ffbda5924ce /src/mailman/queue/bounce.py
parent2f6fbea64ada4d36b04459be201cacd6c3812ed7 (diff)
downloadmailman-83f78ec26541ab0c7b91794ab6b3bc1d8285f9a9.tar.gz
mailman-83f78ec26541ab0c7b91794ab6b3bc1d8285f9a9.tar.zst
mailman-83f78ec26541ab0c7b91794ab6b3bc1d8285f9a9.zip
Diffstat (limited to 'src/mailman/queue/bounce.py')
-rw-r--r--src/mailman/queue/bounce.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mailman/queue/bounce.py b/src/mailman/queue/bounce.py
index 5b705a5c7..2a7af6d1a 100644
--- a/src/mailman/queue/bounce.py
+++ b/src/mailman/queue/bounce.py
@@ -26,10 +26,11 @@ import datetime
from email.Utils import parseaddr
from lazr.config import as_timedelta
-from mailman.Bouncers import BouncerAPI
+from mailman.app.bounce import scan_message
from mailman.config import config
from mailman.core.i18n import _
from mailman.email.utils import split_email
+from mailman.interfaces.bounce import Stop
from mailman.queue import Runner
@@ -192,7 +193,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 BouncerAPI.ScanMessages(mlist, msg) is BouncerAPI.Stop:
+ if scan_messages(mlist, msg) is Stop:
return
else:
# See if this was a probe message.
@@ -202,8 +203,8 @@ class BounceRunner(Runner, BounceMixin):
return
# That didn't give us anything useful, so try the old fashion
# bounce matching modules.
- addrs = BouncerAPI.ScanMessages(mlist, msg)
- if addrs is BouncerAPI.Stop:
+ addrs = scan_messages(mlist, msg)
+ 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
@@ -214,7 +215,7 @@ class BounceRunner(Runner, BounceMixin):
maybe_forward(mlist, msg)
return
# BAW: It's possible that there are None's in the list of addresses,
- # although I'm unsure how that could happen. Possibly ScanMessages()
+ # although I'm unsure how that could happen. Possibly scan_messages()
# can let None's sneak through. In any event, this will kill them.
addrs = filter(None, addrs)
self._queue_bounces(mlist.fqdn_listname, addrs, msg)