From f8596ce463863dc6defb5dac84f5b226c45cb419 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 10 Jun 2011 19:52:25 -0400 Subject: Refactor MTA alias creation. * Create an IMailTransportAgentAliases utility that contains all the logic for generating all the aliases for a mailing list, both the fully-qualified ones and the local-part ones. * Add -f and -s options to `bin/mailman aliases` to facilitate outputing the aliases in other formats than the configured one, and for printing out a simple list of the aliases. * IMailTransportAgentAliases -> IMailTransportAgentLifecycle; also add a new definition for IMailTransportAgentAliases --- src/mailman/testing/mta.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mailman/testing/mta.py') diff --git a/src/mailman/testing/mta.py b/src/mailman/testing/mta.py index 8fae233fa..741c0e607 100644 --- a/src/mailman/testing/mta.py +++ b/src/mailman/testing/mta.py @@ -33,7 +33,7 @@ from lazr.smtptest.controller import QueueController from lazr.smtptest.server import Channel, QueueServer from zope.interface import implements -from mailman.interfaces.mta import IMailTransportAgentAliases +from mailman.interfaces.mta import IMailTransportAgentLifecycle log = logging.getLogger('lazr.smtptest') @@ -43,7 +43,7 @@ log = logging.getLogger('lazr.smtptest') class FakeMTA: """Fake MTA for testing purposes.""" - implements(IMailTransportAgentAliases) + implements(IMailTransportAgentLifecycle) def create(self, mlist): pass -- cgit v1.2.3-70-g09d2