FAQ
I changed DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST in mm_cfg.py. After
that I used /bin/withlist -l -r fix_url listname -u newhostname to fix
the links which works fine for the subscriber link on the
listinfo/listname page but not for the link to the archives there. How
can I fix it?
I use the rpm of mailman 2.1.5 on a fedora3 system.

Search Discussions

  • Mark Sapiro at Mar 8, 2005 at 5:31 pm

    Markus Darges wrote:
    I changed DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST in mm_cfg.py. After
    that I used /bin/withlist -l -r fix_url listname -u newhostname to fix
    the links which works fine for the subscriber link on the
    listinfo/listname page but not for the link to the archives there. How
    can I fix it?
    I use the rpm of mailman 2.1.5 on a fedora3 system.

    I assume this is a public archive, since a private archive would not
    depend on anything beyond what you've done.

    Check to see if you've made any changes (in mm_cfg.py) to

    PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'

    The 'hostname' in this URL comes from looking up the list's host_name
    attribute in an inverted VIRTUAL_HOSTS dictionary. The host_name
    attribute should be correct after 'fix_url', but if your VIRTUAL_HOSTS
    dictionary is messed up or has the same 'email host' value for
    multiple 'url host' keys, this could be a problem.

    Following your redefinition of DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST
    in mm_cfg.py, you should have

    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

    followed by add_virtualhost() lines for other virtual hosts if any.

    See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Markus Darges at Mar 9, 2005 at 9:13 am

    Mark Sapiro wrote:
    Markus Darges wrote:


    I changed DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST in mm_cfg.py. After
    that I used /bin/withlist -l -r fix_url listname -u newhostname to fix
    the links which works fine for the subscriber link on the
    listinfo/listname page but not for the link to the archives there. How
    can I fix it?
    I use the rpm of mailman 2.1.5 on a fedora3 system.

    I assume this is a public archive, since a private archive would not
    depend on anything beyond what you've done.

    Check to see if you've made any changes (in mm_cfg.py) to

    PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'

    The 'hostname' in this URL comes from looking up the list's host_name
    attribute in an inverted VIRTUAL_HOSTS dictionary. The host_name
    attribute should be correct after 'fix_url', but if your VIRTUAL_HOSTS
    dictionary is messed up or has the same 'email host' value for
    multiple 'url host' keys, this could be a problem.

    Following your redefinition of DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST
    in mm_cfg.py, you should have

    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

    followed by add_virtualhost() lines for other virtual hosts if any.

    See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan


    Thanks that works and yes its a public list. But the link/ more
    information about this list /(on
    'http://%(hostname)s/pipermail/%(listname)s') still points on the old
    servers name. Any idea?
  • Mark Sapiro at Mar 9, 2005 at 3:29 pm

    Markus Darges wrote:
    Thanks that works and yes its a public list. But the link/ more
    information about this list /(on
    'http://%(hostname)s/pipermail/%(listname)s') still points on the old
    servers name. Any idea?

    This link is built into the archive when it is created. Newly created
    monthly index pages will have the correct link. You have to rebuild
    the archive (see bin/arch --help) to fix the existing pages (or edit
    them manually).

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedMar 8, '05 at 2:35p
activeMar 9, '05 at 3:29p
posts4
users2
websitelist.org

2 users in discussion

Mark Sapiro: 2 posts Markus Darges: 2 posts

People

Translate

site design / logo © 2022 Grokbase