[Mailman-Users] listinfo_url and optionsurl alternatives?

Michael Grueter mgrueter at aol.com
Wed Dec 12 22:52:48 CET 2007


On Dec 10, 2007, at 1:10 PM, Mark Sapiro wrote:

> Michael Grueter wrote:
>
>> The subscribeack.txt template file uses two variables that I would
>> like to change:
>>
>> 1) %(listinfo_url)s produces the following URL:
>>
>> http://hostname/mailman/listinfo/listname
>>
>> where hostname is the generic host name for the mail server.
>>
>> 2) %(optionsurl)s produces a similar URL with the same generic  
>> hostname:
>>
>> http://hostname/mailman/options/listname/username%40domain
>>
>> Instead, I would like Mailman to use the custom "host name this list
>> prefers for email" as entered in the General Options page of the
>> Administration web page. What variables would I use to do this?
>
> %(host_name)s is exactly that.
>
> If you want to make a url, you would need something like
>
> http://%(host_name)s/mailman/listinfo/listname
>
> or
>
> http://%(host_name)s/mailman/options/listname/%(user)s
>
> although if that's what you're trying to do, your Mailman and/or your
> list is not properly configured.
>
> If you have the appropriate add_virtualhost() directives in mm_cfg.py
> for this host and you have run fix_url if necessary to give the list
> the correct web_page_url attribute, you should get the URL's you want
> from the default template.
>
> See some of the articles returned by
> <http://www.python.org/cgi-bin/faqw-mm.py? 
> query=web_page_url&querytype=simple&casefold=yes&req=search>.

Hi Mark,

Thanks for the info. I was able to play with the variables you  
mentioned and it works. So as far as correctly configuring Mailman is  
concerned, are you saying that I should not have to edit  
subscribeack.txt in order for the "host name this list prefers for  
email" to show up instead of the generic mail server host name?

I'm running Mac OS X Server 10.4.10 and there is a GUI admin tool for  
configuring mailing lists. This is what I used to setup my mailing  
list. Maybe it is not configuring things properly. Are you familiar  
with this tool?

Thanks,

- Mike


More information about the Mailman-Users mailing list