diff options
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.""" |
