[Mailman-Users] re-creating list archive - old List-Archive problem

Todd Freedom_Lover at pobox.com
Wed Dec 17 23:05:39 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gour wrote:
> Todd (Freedom_Lover at pobox.com) wrote:
>
>> Perhaps you could post all your add_virtualhost() calls from
>> mm_cfg.py.  That might help someone spot something useful.
>
> DEFAULT_EMAIL_HOST = 'lists.domain.com'
> DEFAULT_URL_HOST = 'lists.domain.com'
>
> VIRTUAL_HOSTS.clear()
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
> add_virtualhost('www.virtualdomain1.com','lists.domain.com')
> add_virtualhost('www.virtualdomain2.com','lists.domain.com')

All right.  I see now.  When you look at the code for
GetBaseArchiveURL(), you see that it inverts the VIRTUAL_HOST
dictionary (or is it a list?) and uses emailhost as the key.  So with
the emailhost the same for all virtual hosts, the inv dictionary only
has one value for the key 'lists.domain.com' and it will be whichever
one was returned last in the for loop.  Can you set the virtual hosts
up more like this?

    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
    add_virtualhost('www.virtualdomain1.com','virtualdomain1.com')
    add_virtualhost('www.virtualdomain2.com','virtualdomain2.com')

Then use the fix_url script to update the lists and I *think* that
will result in the right url getting used for your archives.

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Wisdom has two parts: (1) having a lot to say and (2) not saying it.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iD8DBQE/4NMtuv+09NZUB1oRAsgyAKCrlTKuafkx4coHBksHzjqaSnbDKgCgpIMn
YHtA3rKWhEAfIN9goVEPeVE=
=weAw
-----END PGP SIGNATURE-----




More information about the Mailman-Users mailing list