[Mailman-Users] Changing URLS in a py file
Mark Sapiro
msapiro at value.net
Sun Aug 5 04:48:45 CEST 2007
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 at python.org>; Sun, 5 Aug 2007 03:25:22 +0200 (CEST)
Received: (qmail 93650 invoked from network); 5 Aug 2007 01:18:41 -0000
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 -0000
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 at python.org>; Sun, 5 Aug 2007 03:18:42 +0200 (CEST)
Received: (qmail 93650 invoked from network); 5 Aug 2007 01:18:41 -0000
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 -0000
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 pcst at geniusmoon.com.au 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 <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