[Mailman-Users] Changing URLS in a py file

2007-08-04 Thread Mark Dale

Hello Mailman Users

In the email that gets sent to new subscribers, there is a message like 
the one below:

+-+

Welcome to the [EMAIL PROTECTED] mailing list!

General information about the mailing list is at:

http://geniusmoon.com.au/cgi-bin/mailman/listinfo/pcst

+-+

Is it possible to change those URLs in one of the .py files somewhere?

I'd like it to show http://pcst.geniusmoon.com.au;  instead, which 
would have a redirect (that I create manually) that sends the user to 
the above URL.

I'm thinking that it would be a matter of changing what wraps around the 
variables - domain and list name.

http://$DOMAIN/cgi-bin/mailman/listinfo/$LISTNAME
to
http://$LISTNAME.$DOMAIN


Any clues greatly appreciated.

regards
Mark Dale




  --
 Mark Dale

 phone: 02  6112 8632
mobile: 0403 831 748
 email: [EMAIL PROTECTED]

  --



--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] Changing URLS in a py file

2007-08-04 Thread Mark Sapiro
It appears this message was delivered twice from relay00.pair.com to
bag.python.org. The relevant Received: headers from one copy are

Received: from relay00.pair.com (relay00.pair.com [209.68.5.9])
by bag.python.org (Postfix) with SMTP
for mailman-users@python.org; Sun,  5 Aug 2007 03:25:22 +0200 (CEST)
Received: (qmail 93650 invoked from network); 5 Aug 2007 01:18:41 -
Received: from 210.9.136.80 (HELO ?192.168.1.102?) (210.9.136.80)
by relay00.pair.com with SMTP; 5 Aug 2007 01:18:41 -

and from the other copy

Received: from relay00.pair.com (relay00.pair.com [209.68.5.9])
by bag.python.org (Postfix) with SMTP
for mailman-users@python.org; Sun,  5 Aug 2007 03:18:42 +0200 (CEST)
Received: (qmail 93650 invoked from network); 5 Aug 2007 01:18:41 -
Received: from 210.9.136.80 (HELO ?192.168.1.102?) (210.9.136.80)
by relay00.pair.com with SMTP; 5 Aug 2007 01:18:41 -

Note the identical first two (bottom two) headers followed by different
receive times in the third header.


Mark Dale wrote:

In the email that gets sent to new subscribers, there is a message like 
the one below:

+-+

Welcome to the [EMAIL PROTECTED] mailing list!

General information about the mailing list is at:

http://geniusmoon.com.au/cgi-bin/mailman/listinfo/pcst

+-+

Is it possible to change those URLs in one of the .py files somewhere?

I'd like it to show http://pcst.geniusmoon.com.au;  instead, which 
would have a redirect (that I create manually) that sends the user to 
the above URL.

I'm thinking that it would be a matter of changing what wraps around the 
variables - domain and list name.

http://$DOMAIN/cgi-bin/mailman/listinfo/$LISTNAME
to
http://$LISTNAME.$DOMAIN


This URL and essentially all others for all the CGI modules, not just
listinfo, is built by calling the ScriptURL() function in
Mailman/Utils.py with the scriptname (listinfo in this case) as an
argument. That function returns the
http://$DOMAIN/cgi-bin/mailman/listinfo/ part. See that function for
what it does. The actual list name is appended to the ScriptURL()
result by the caller and this is done all over the place.

 grep -r ScriptURL\(\'listinfo\' *

in the Mailman directory finds 25 different calls from 17 different
modules.

If all you want to change is the one occurrence of this URL in the
list's welcome email, just edit the Welcome email text file
(subscribeack.txt) template via the admin web interface to make a list
specific version and replace

  %(listinfo_url)s

with

  http://pcst.geniusmoon.com.au

or whatever URL you want.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp