Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core

Commits:
03438870 by Mark Sapiro at 2018-05-31T02:58:06Z
Make postfix.py accept a null string for alias_domains.

- - - - -
b2644bc0 by Abhilash Raj at 2018-05-31T03:47:25Z
Merge branch 'domain' into 'master'

Make postfix.py accept a null string for alias_domains.

Closes #485

See merge request mailman/mailman!397
- - - - -


2 changed files:

- src/mailman/docs/NEWS.rst
- src/mailman/mta/postfix.py


Changes:

=====================================
src/mailman/docs/NEWS.rst
=====================================
--- a/src/mailman/docs/NEWS.rst
+++ b/src/mailman/docs/NEWS.rst
@@ -78,6 +78,8 @@ Bugs
   returns a header instance.  (Closes #477)
 * ``mailman`` command without any sub-command now invokes ``mailman help`` by
   default. (Closes #479)
+* The ``alias_domain`` attribute can become a null string.  ``mta/postfix.py``
+  has been fixed to generate proper mappings in this case.  (Closes #485)
 
 Command line
 ------------


=====================================
src/mailman/mta/postfix.py
=====================================
--- a/src/mailman/mta/postfix.py
+++ b/src/mailman/mta/postfix.py
@@ -59,7 +59,7 @@ def atomic(path):
 def _get_alias_domain(domain):
     domain_manager = getUtility(IDomainManager)
     d = domain_manager.get(domain)
-    if d is not None and d.alias_domain is not None:
+    if d is not None and d.alias_domain:
         return d.alias_domain
     return domain
 



View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/79d8f4e742f0983d0442d64a9ab1739ca4799228...b2644bc0204a5ba67857a825df8026c6fe5d2fd9

-- 
View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/79d8f4e742f0983d0442d64a9ab1739ca4799228...b2644bc0204a5ba67857a825df8026c6fe5d2fd9
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to