[Mailman-Users] confused about how to use fix url

Mark Sapiro msapiro at value.net
Sun Feb 5 00:49:43 CET 2006


Thomas Waters wrote:

>I need some help understanding the use of fix url.  I see that I need  
>to use it with withlist, but past that, I'm confused.
>
>Upgraded the hardware for our server, and in trying to move  
>everything to it my lists aren't working.  I can create a new list,  
>and it works, but the migrated lists won't function.  In the web page  
>UI, the links to the archives show the wrong URL.


If you have only DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST in your
configuration and no additional virtual hosts, you can give the
following command to process all your lists according to the default
settings which should be correct given that your new lists work.

bin/withlist -l -a -r fix_url -- -v

This runs withlist and tells it to lock the lists (-l) process all
lists (-a) process by calling fix_url in the module fix_url.py with
arguments of the list instance and -v which causes fix_url to report
what it's doing. The -- is to separate the -v option for fix_url from
the withlist options since there's no listname to do that in this case.

If you have more than one virtual host, you have to process the lists
one at a time with

bin/withlist -l -r fix_url listname -u url_host

but you could wrap that in a shell script to run the command repeatedly
for all the listname/url_host pairs.

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




More information about the Mailman-Users mailing list