------------------------------------------------------------
revno: 1239
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Sun 2010-05-30 14:16:01 -0700
message:
Fixed bin/genaliases to not throw TypeError when MTA = None.
Bug #587657.
modified:
NEWS
bin/genaliases
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'NEWS'
--- NEWS 2010-05-10 21:47:36 +0000
+++ NEWS 2010-05-30 21:16:01 +0000
@@ -17,6 +17,9 @@
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.
=== modified file 'bin/genaliases'
--- bin/genaliases 2005-08-27 01:40:17 +0000
+++ bin/genaliases 2010-05-30 21:16:01 +0000
@@ -79,6 +79,12 @@
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)
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org