summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/mta.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-06-10 19:52:25 -0400
committerBarry Warsaw2011-06-10 19:52:25 -0400
commitf8596ce463863dc6defb5dac84f5b226c45cb419 (patch)
tree616e2f0d952d1654d3b0b60d661f5349d469acf4 /src/mailman/interfaces/mta.py
parentbf8b285acb8c2500e52ae2582f27513b9842de54 (diff)
downloadmailman-f8596ce463863dc6defb5dac84f5b226c45cb419.tar.gz
mailman-f8596ce463863dc6defb5dac84f5b226c45cb419.tar.zst
mailman-f8596ce463863dc6defb5dac84f5b226c45cb419.zip
Diffstat (limited to 'src/mailman/interfaces/mta.py')
-rw-r--r--src/mailman/interfaces/mta.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/mailman/interfaces/mta.py b/src/mailman/interfaces/mta.py
index 2aeb65172..0e6fd0938 100644
--- a/src/mailman/interfaces/mta.py
+++ b/src/mailman/interfaces/mta.py
@@ -23,6 +23,7 @@ __metaclass__ = type
__all__ = [
'IMailTransportAgentAliases',
'IMailTransportAgentDelivery',
+ 'IMailTransportAgentLifecycle',
]
@@ -42,7 +43,26 @@ class SomeRecipientsFailed(MailmanError):
class IMailTransportAgentAliases(Interface):
- """Interface to the MTA aliases generator."""
+ """Interface to the MTA utility for generating all the aliases."""
+
+ def aliases(mlist):
+ """Generate all the aliases for the mailing list.
+
+ This method is a generator. The posting address will be returned
+ first, followed by the rest of the aliases in alphabetical order.
+ """
+
+ def destinations(mlist):
+ """Generate just the local parts for the mailing list aliases.
+
+ This method is a generator. The posting address will be returned
+ first, followed by the rest of the aliases in alphabetical order.
+ """
+
+
+
+class IMailTransportAgentLifecycle(Interface):
+ """Interface to the MTA for creating and deleting a mailing list."""
def create(mlist):
"""Tell the MTA that the mailing list was created."""