[Mailman-Users] Attachment URL question in Archive Page
Brian Carpenter
brian at emwd.com
Sat Mar 5 03:41:44 CET 2005
Hi Mark:
Thank you for the assistance.
The "PUBLIC_ARCHIVE_URL" governs the url to the archives of a list. That is
working fine. The url that I am talking about is the url that shows up when
looking at an archived message that had an attachment scrubbed.
Have a great day.
Kind regards,
Brian Carpenter
Emerging Markets Web Design, LLC
www.emwd.com
-----Original Message-----
From: Mark Sapiro [mailto:msapiro at value.net]
Sent: Friday, March 04, 2005 5:35 PM
To: Brian Carpenter; mailman-users at python.org
Subject: Re: [Mailman-Users] Attachment URL question in Archive Page
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