summaryrefslogtreecommitdiff
path: root/mailman/Cgi/create.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-09-21 18:11:26 -0400
committerBarry Warsaw2008-09-21 18:11:26 -0400
commita2234211b97797aebf2c3c3d615ae436bbfb280b (patch)
tree6f5c646b676045f9505bc0e99ccfb876435f393d /mailman/Cgi/create.py
parenta29f10d75e3738e9498bc8c6d67c4fc5a6924210 (diff)
parent211a82ddb463ac044ba20d51208e5f5a169dcb6c (diff)
downloadmailman-a2234211b97797aebf2c3c3d615ae436bbfb280b.tar.gz
mailman-a2234211b97797aebf2c3c3d615ae436bbfb280b.tar.zst
mailman-a2234211b97797aebf2c3c3d615ae436bbfb280b.zip
mergeRF
Diffstat (limited to 'mailman/Cgi/create.py')
-rw-r--r--mailman/Cgi/create.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mailman/Cgi/create.py b/mailman/Cgi/create.py
index c2b8b710d..a5be1be15 100644
--- a/mailman/Cgi/create.py
+++ b/mailman/Cgi/create.py
@@ -151,8 +151,12 @@ def process_request(doc, cgidata):
# Make sure the url host name matches one of our virtual domains. Then
# calculate the list's posting address.
url_host = Utils.get_request_domain()
- email_host = config.get_email_host(url_host)
- if not email_host:
+ # Find the IDomain matching this url_host if there is one.
+ for email_host, domain in config.domains:
+ if domain.url_host == url_host:
+ email_host = domain.email_host
+ break
+ else:
safehostname = Utils.websafe(url_host)
request_creation(doc, cgidata,
_('Unknown virtual host: $safehostname'))