[Mailman-Users] Mailman 2.1.5 attachment url bug

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Sat Feb 5 14:41:08 CET 2005



Larry McMahon-Padolski wrote:

> Hi,
> 
> I mean that the URL needs to be prefixed with http://www.domain.com to  
> work.
> How can I find out that this is fixed it 2.1.6?
> 
> How can I tell if the lists hostname is set properly?  Is this done in the
> Mailmain admin tool?

If you have shell access to your machine, you can test like (as mailman 
user):
% withlist listname
Loading list listname (unlocked)
The variable `m' is the listname MailList instance
 >>> m.host_name
'example.com'
 >>> m.GetBaseArchiveURL()
'http://www.example.com/pipermail/listname/'
 >>>

> 
> Larry
> 
> On Sat, 05 Feb 2005 11:44:08 +0900, Tokio Kikuchi  
> <tkikuchi at is.kochi-u.ac.jp> wrote:
> 
>> Larry McMahon-Padolski wrote:
>>
>>> Hi,
>>>  When a user attaches a non-txt file, Mailman provides a URL 
>>> pointing  to  the attachment.
>>> For example:
>>> /pipermail/listname_domain.com/attachments/20050201/d8f9df80/ReneeSUMMERSCOURSESCAPP.doc  
>>>   However the proper URL is:
>>> http://www.domain.com/pipermail/listname_domain.com/attachments/20050201/d8f9df80/ReneeSUMMERSCOURSESCAPP.doc 
>>>
>>
>>
>> Do you mean that scheme://host part is absent in the URL?
>> It is taken from mlist.GetBaseArchiveURL() and automatically 
>> determined  if list's hostname (for email) is set properly. You may 
>> want to upgrade  to 2.1.6 beta 2 because there are a number of fixes 
>> in Scrubber.py.
>>
>>
TK




More information about the Mailman-Users mailing list