summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/bounce.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 10:13:48 -0400
committerBarry Warsaw2016-03-25 10:13:48 -0400
commita681354cadf48394127796eb111c2904283c9288 (patch)
tree87377966491672f981d6567d78debd384004d11b /src/mailman/interfaces/bounce.py
parentb9c06627e46ff1e9f09965228ab3b48f217109af (diff)
downloadmailman-a681354cadf48394127796eb111c2904283c9288.tar.gz
mailman-a681354cadf48394127796eb111c2904283c9288.tar.zst
mailman-a681354cadf48394127796eb111c2904283c9288.zip
Diffstat (limited to 'src/mailman/interfaces/bounce.py')
-rw-r--r--src/mailman/interfaces/bounce.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/mailman/interfaces/bounce.py b/src/mailman/interfaces/bounce.py
index 35b62ae24..0e39ca3b9 100644
--- a/src/mailman/interfaces/bounce.py
+++ b/src/mailman/interfaces/bounce.py
@@ -17,19 +17,12 @@
"""Interface to bounce detection components."""
-__all__ = [
- 'BounceContext',
- 'IBounceEvent',
- 'IBounceProcessor',
- 'UnrecognizedBounceDisposition',
- ]
-
-
from enum import Enum
+from mailman import public
from zope.interface import Attribute, Interface
-
+@public
class BounceContext(Enum):
"""The context in which the bounce was detected."""
@@ -42,7 +35,7 @@ class BounceContext(Enum):
probe = 2
-
+@public
class UnrecognizedBounceDisposition(Enum):
# Just throw the message away.
discard = 0
@@ -53,7 +46,7 @@ class UnrecognizedBounceDisposition(Enum):
site_owner = 2
-
+@public
class IBounceEvent(Interface):
"""Registration record for a single bounce event."""
@@ -76,7 +69,7 @@ class IBounceEvent(Interface):
"""Has this bounce event been processed?""")
-
+@public
class IBounceProcessor(Interface):
"""Manager/processor of bounce events."""