diff options
| author | Barry Warsaw | 2008-09-21 18:11:38 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-09-21 18:11:38 -0400 |
| commit | 85f57a8d9b6c2554d5fd0882d8cf700adc5ec688 (patch) | |
| tree | 975f8012b969ab093f8fe0789ab612f6c6e255cd /mailman/Cgi/create.py | |
| parent | 0eecafaa2502f51bfa891a35efbb1b402239dce1 (diff) | |
| parent | a2234211b97797aebf2c3c3d615ae436bbfb280b (diff) | |
| download | mailman-85f57a8d9b6c2554d5fd0882d8cf700adc5ec688.tar.gz mailman-85f57a8d9b6c2554d5fd0882d8cf700adc5ec688.tar.zst mailman-85f57a8d9b6c2554d5fd0882d8cf700adc5ec688.zip | |
thread merge
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')) |
