diff options
| author | Barry Warsaw | 2008-09-20 00:33:07 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-09-20 00:33:07 -0400 |
| commit | 211a82ddb463ac044ba20d51208e5f5a169dcb6c (patch) | |
| tree | 77989d93988a32af4c92b5b1b9b7adf0c8fe15b1 /mailman/Cgi/create.py | |
| parent | b42f3204f7223f3ce9ae306dcb2cec10853eca8d (diff) | |
| download | mailman-211a82ddb463ac044ba20d51208e5f5a169dcb6c.tar.gz mailman-211a82ddb463ac044ba20d51208e5f5a169dcb6c.tar.zst mailman-211a82ddb463ac044ba20d51208e5f5a169dcb6c.zip | |
Diffstat (limited to 'mailman/Cgi/create.py')
| -rw-r--r-- | mailman/Cgi/create.py | 8 |
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')) |
