diff options
| author | Barry Warsaw | 2011-07-15 18:48:32 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-07-15 18:48:32 -0400 |
| commit | 6a535715b6cd286df1bbbefe20b42a6ad0cc3390 (patch) | |
| tree | c46c4da417f360bdf002f2511a55cd155a14026c /src/mailman/interfaces/bounce.py | |
| parent | 651fe5ef452e6ae7cba741c819f9fcc994688753 (diff) | |
| download | mailman-6a535715b6cd286df1bbbefe20b42a6ad0cc3390.tar.gz mailman-6a535715b6cd286df1bbbefe20b42a6ad0cc3390.tar.zst mailman-6a535715b6cd286df1bbbefe20b42a6ad0cc3390.zip | |
Diffstat (limited to 'src/mailman/interfaces/bounce.py')
| -rw-r--r-- | src/mailman/interfaces/bounce.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mailman/interfaces/bounce.py b/src/mailman/interfaces/bounce.py index 99f6b50b7..f899a94a3 100644 --- a/src/mailman/interfaces/bounce.py +++ b/src/mailman/interfaces/bounce.py @@ -22,10 +22,8 @@ from __future__ import absolute_import, unicode_literals __metaclass__ = type __all__ = [ 'BounceContext', - 'IBounceDetector', 'IBounceEvent', 'IBounceProcessor', - 'Stop', 'UnrecognizedBounceDisposition', ] @@ -35,14 +33,6 @@ from zope.interface import Attribute, Interface -# If a bounce detector returns Stop, that means to just discard the -# message. An example is warning messages for temporary delivery -# problems. These shouldn't trigger a bounce notification, but we also -# don't want to send them on to the list administrator. -Stop = object() - - - class BounceContext(Enum): """The context in which the bounce was detected.""" @@ -67,22 +57,6 @@ class UnrecognizedBounceDisposition(Enum): -class IBounceDetector(Interface): - """Detect a bounce in an email message.""" - - def process(self, msg): - """Scan an email message looking for bounce addresses. - - :param msg: An email message. - :type msg: `Message` - :return: The detected bouncing addresses. When bouncing addresses are - found but are determined to be non-fatal, the value `Stop` is - returned to halt any bounce processing pipeline. - :rtype: A set strings, or `Stop` - """ - - - class IBounceEvent(Interface): """Registration record for a single bounce event.""" |
