From fdcd7bb734b7d2717506664fe3b99b65d6dfa092 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 30 May 2010 14:16:01 -0700 Subject: Fixed bin/genaliases to not throw TypeError when MTA = None. Bug #587657. --- NEWS | 3 +++ bin/genaliases | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/NEWS b/NEWS index 0e470bf4..38ad8571 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,9 @@ Here is a history of user visible changes to Mailman. Bug Fixes and other patches + - Fixed bin/genaliases to not throw TypeError when MTA = None. + Bug #587657. + - Provided the ability to specify in mm_cfg.py a local domain (e.g. 'localhost') for the local addresses in the generated virtual-mailman when MTA = 'Postfix'. See VIRTUAL_MAILMAN_LOCAL_DOMAIN in Defaults.py. diff --git a/bin/genaliases b/bin/genaliases index 18b67efe..0a1a3dae 100644 --- a/bin/genaliases +++ b/bin/genaliases @@ -79,6 +79,12 @@ def main(): if args: usage(1) + if not mm_cfg.MTA: + mta = repr(mm_cfg.MTA) + usage(2, _( + "genaliases can't do anything useful with mm_cfg.MTA = %(mta)s." + )) + # Import the MTA specific module modulename = 'Mailman.MTA.' + mm_cfg.MTA __import__(modulename) -- cgit v1.2.3