------------------------------------------------------------
revno: 1110
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Sun 2010-05-30 14:19:22 -0700
message:
  Fixed bin/genaliases to not throw TypeError when MTA = None.
  Bug #587657.
modified:
  NEWS
  bin/genaliases


--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2

Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'NEWS'
--- NEWS	2010-05-10 21:49:37 +0000
+++ NEWS	2010-05-30 21:19:22 +0000
@@ -87,6 +87,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:19:22 +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

Reply via email to