[Mailman-Users] mailmanlistinfo without slash

Mark Sapiro msapiro at value.net
Fri Jan 28 03:22:16 CET 2005


John Fleming wrote:

>> It looks like you may have changed DEFAULT_URL_PATTERN in mm_cfg.py.
>> Does it have a trailing slash?
>
>No, it doesn't - Should it?  If so, others don't have it either, e.g. this
>is how I found things:
>
>DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman'
>PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
>IMAGE_LOGOS         = '/images/mailman/'
>
>Thus the first 2 don't and last one does.  Should they all have the trailing
>slash?  (Actually I don't need the cgi-bin part, but I'll fix that later
>after I get the basic problem corrected.)

I think it is best if they all do have the trailing slash, but there
are many places in Mailman's code where the trailing slash is checked
for and added if absent, but clearly not everywhere.

>> If this is the problem, after you fix DEFAULT_URL_PATTERN, you need to
>> run bin/fix_url.py under bin/withlist to fix the list(s).
>
>OK, I've added the trailing slash, run fix_url.py using withlist and
>restarted Mailman, but everything is the same - The link still has
>"listinfomailman" without the needed slash.  Any more ideas?

As Tokio mentioned in another reply, the archive was probably built
with the bad value and now that the list is fixed (assuming that is
the fix) the archive needs to be rebuilt.

As Tokio also suggested, since there isn't anything in the archive yet,
you could remove the list and recreate it (and use config_list to save
the settings before deleting and restore them later), but if you have
members and they have various different options, etc. it is probably
much simpler to just do

bin/arch --wipe <listname>

to recreate the archive.

--
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