summaryrefslogtreecommitdiff
path: root/src/mailman/app/bounces.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-07-15 18:48:32 -0400
committerBarry Warsaw2011-07-15 18:48:32 -0400
commit6a535715b6cd286df1bbbefe20b42a6ad0cc3390 (patch)
treec46c4da417f360bdf002f2511a55cd155a14026c /src/mailman/app/bounces.py
parent651fe5ef452e6ae7cba741c819f9fcc994688753 (diff)
downloadmailman-6a535715b6cd286df1bbbefe20b42a6ad0cc3390.tar.gz
mailman-6a535715b6cd286df1bbbefe20b42a6ad0cc3390.tar.zst
mailman-6a535715b6cd286df1bbbefe20b42a6ad0cc3390.zip
Diffstat (limited to 'src/mailman/app/bounces.py')
-rw-r--r--src/mailman/app/bounces.py28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/mailman/app/bounces.py b/src/mailman/app/bounces.py
index 50a9f54d8..e227dfc32 100644
--- a/src/mailman/app/bounces.py
+++ b/src/mailman/app/bounces.py
@@ -25,7 +25,6 @@ __all__ = [
'StandardVERP',
'bounce_message',
'maybe_forward',
- 'scan_message',
'send_probe',
]
@@ -40,12 +39,10 @@ from string import Template
from zope.component import getUtility
from zope.interface import implements
-from mailman.app.finder import find_components
from mailman.config import config
from mailman.core.i18n import _
from mailman.email.message import OwnerNotification, UserNotification
-from mailman.interfaces.bounce import (
- IBounceDetector, Stop, UnrecognizedBounceDisposition)
+from mailman.interfaces.bounce import UnrecognizedBounceDisposition
from mailman.interfaces.listmanager import IListManager
from mailman.interfaces.membership import ISubscriptionService
from mailman.interfaces.pending import IPendable, IPendings
@@ -96,29 +93,6 @@ def bounce_message(mlist, msg, e=None):
-def scan_message(mlist, msg):
- """Scan all the message for heuristically determined bounce addresses.
-
- :param mlist: The mailing list.
- :type mlist: `IMailingList`
- :param msg: The bounce message to scan.
- :type msg: `Message`
- :return: The set of bouncing addresses found in the scanned message. The
- set will be empty if no addresses were found.
- :rtype: set
- """
- fatal_addresses = set()
- for detector_class in find_components('mailman.bouncers', IBounceDetector):
- addresses = detector_class().process(msg)
- # Detectors may return Stop to signify that no fatal errors were
- # found, or a sequence of addresses.
- if addresses is Stop:
- return Stop
- fatal_addresses.update(addresses)
- return fatal_addresses
-
-
-
class _BaseVERPParser:
"""Base class for parsing VERP messages.