[Mailman-Users] Attachment URL question in Archive Page

Mark Sapiro msapiro at value.net
Fri Mar 4 23:35:26 CET 2005


Brian Carpenter wrote:
>
>I am running Mailman 2.1.5p1 under cPanel.


I'm not sure how cPanel affects this. See
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.011.htp


>I have question on the URL that shows up for a scrubbed attachment on the
>Archive page. Right now the URL shows up in this format:
>
>Url : /pipermail/listname/attachments/20050302/b37e3e52/0001.gif
>
>How can I change this to:
>
>Url :
>http://host_name/pipermail/listname/attachments/20050302/b37e3e52/0001.gif
>
>Host_name being the virtual host name of the list. Please help. Thanks.

The default setting in Defaults.py for PUBLIC_ARCHIVE_URL is

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

Has this been changed or overridden in mm_cfg.py?

If not, 'hostname' comes from inverting the VIRTUAL_HOSTS dictionary
and looking up the list's host_name attribute in the inverted
dictionary. If not found, DEFAULT_URL_HOST is used, so there should
always be something.

The implication is PUBLIC_ARCHIVE_URL must have been changed.

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