summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/mta.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/mta.py
parentb9c06627e46ff1e9f09965228ab3b48f217109af (diff)
downloadmailman-a681354cadf48394127796eb111c2904283c9288.tar.gz
mailman-a681354cadf48394127796eb111c2904283c9288.tar.zst
mailman-a681354cadf48394127796eb111c2904283c9288.zip
Diffstat (limited to 'src/mailman/interfaces/mta.py')
-rw-r--r--src/mailman/interfaces/mta.py16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/mailman/interfaces/mta.py b/src/mailman/interfaces/mta.py
index 8c168c3a1..47436ead5 100644
--- a/src/mailman/interfaces/mta.py
+++ b/src/mailman/interfaces/mta.py
@@ -17,18 +17,12 @@
"""Interface for mail transport agent integration."""
-__all__ = [
- 'IMailTransportAgentAliases',
- 'IMailTransportAgentDelivery',
- 'IMailTransportAgentLifecycle',
- ]
-
-
+from mailman import public
from mailman.interfaces.errors import MailmanError
from zope.interface import Interface
-
+@public
class SomeRecipientsFailed(MailmanError):
"""Delivery to some or all recipients failed"""
def __init__(self, temporary_failures, permanent_failures):
@@ -37,7 +31,7 @@ class SomeRecipientsFailed(MailmanError):
self.permanent_failures = permanent_failures
-
+@public
class IMailTransportAgentAliases(Interface):
"""Interface to the MTA utility for generating all the aliases."""
@@ -70,7 +64,7 @@ class IMailTransportAgentAliases(Interface):
"""
-
+@public
class IMailTransportAgentLifecycle(Interface):
"""Interface to the MTA for creating and deleting a mailing list."""
@@ -89,7 +83,7 @@ class IMailTransportAgentLifecycle(Interface):
"""
-
+@public
class IMailTransportAgentDelivery(Interface):
"""Interface to the MTA delivery strategies."""