[EMAIL PROTECTED] wrote:

>I managed to change the list URL in mm_cfg.py, so it applies to ALL 
>lists on the server. How do I get it to display the actual virtual 
>domain the list is supposed to use?
>
>Below is what I have now. I want to display 'www.damnspam.ca' in the 
>footer on the resp list. The list name and email address come out 
>correctly.
>
>=== Cut ===
>##################################################
># Put YOUR site-specific settings below this line.
>DEFAULT_EMAIL_HOST = 'karico.ca'
>DEFAULT_URL_HOST = 'www.karico.ca'
>DEFAULT_URL_PATTERN = 'http://%s/mailman/'
>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>=== Cut ===

It is not clear to me from the above exactly what you're trying to
accomplish. My guess is you have some lists you want to be in the
www.karico.ca domain and some in the www.damnspam.ca domain. The
e-mail domain for the www.karico.ca lists is karico.ca, and (here I'm
really guessing) the e-mail domain for the www.damnspam.ca lists is
damnspam.ca.

Assuming that's what you want, you should have the following in
mm_cfg.py. Note you don't need

DEFAULT_URL_PATTERN = 'http://%s/mailman/'

because you aren't changing it.

=== Cut ===
##################################################
# Put YOUR site-specific settings below this line.
DEFAULT_EMAIL_HOST = 'karico.ca'
DEFAULT_URL_HOST = 'www.karico.ca'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('www.damnspam.ca', 'damnspam.ca')
=== Cut ===

The VIRTUAL_HOSTS.clear() is to remove the entry that was set in
Defaults.py, in case it wouldn't be replaced (same url host key) by
the two above.

Then (after doing 'bin/mailmanctl restart') to pick up these changes,
for each list in the www.karico.ca domain do

bin/withlist -l -r fix_url listname

and for each list in the www.damnspam.ca domain do

bin/withlist -l -r fix_url listname --urlhost=www.damnspam.ca

See FAQ article 4.29 for more info.

>Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py

As I said, I may not understand what you're trying to do, so this may
not be the solution.

--
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
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&amp;file=faq01.027.htp

Reply via email to