Julia Frizzell wrote:
>
>They're public archives, and I do not have a hard coded host name in
>my mm_cfg.py.
>
>Interestingly enough, ALL of the other links work perfectly. It is
>ONLY the list for the archives that has a problem. Should I worry
>about running the fix_url.py and having it create problems for the
>currently working links and potentially messing up the other virtual
>hosts, or should I just relax and let it do its thing?
I went to your listinfo overview page to see what Mailman version you
are using, and I see it is 2.1.5.
2.1.5 inverts the VIRTUAL_HOSTS dictionary, and looks up the lists
host_name attribute (email host) in the inverted dictionary to get the
corresponding web host. This is not done in current Mailman and is
subject to error if the VIRTUAL_HOSTS dictionary has duplicate values.
I suggest the problem is as follows:
Mailman was configured such that the Defaults.py settings for
DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST are both 'alliance.brown.edu',
and this entry is put in VIRTUAL_HOSTS by the
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) in Defaults.py
mm_cfg.py contains
DEFAULT_URL_HOST = 'lists.alliance.brown.edu'
DEFAULT_EMAIL_HOST = 'alliance.brown.edu'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
This results in a VIRTUAL_HOSTS dictionary =
{'lists.alliance.brown.edu': 'alliance.brown.edu',
'alliance.brown.edu': 'alliance.brown.edu'}
which, since dictionaries can't have duplicate keys, gets inverted to
{'alliance.brown.edu': 'alliance.brown.edu'}
If I am correct, the solution to this problem is to add
VIRTUAL_HOSTS.clear()
to mm_cfg.py preceeding the add_virtualhost() as
DEFAULT_URL_HOST = 'lists.alliance.brown.edu'
DEFAULT_EMAIL_HOST = 'alliance.brown.edu'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp