Hong Jiang Tian wrote:
>
>When accessing the listinfo web page, it mentioned that "If you are having
>trouble using the lists, please contact [EMAIL PROTECTED]". 
>I needed to change the above email address from [EMAIL PROTECTED] to
>another email address such as [EMAIL PROTECTED] I tried to
>modify /usr/local/mailman/Mailman/Cgi/listinfo.py, but I didn't know how use
>Link function.
>Link('mailto:' + siteowner, siteowner)
>
>Does anyone knows how to modify Link function to another email address?

  Link(arg1, arg2)

creats an anchor tag of the form

 <a href="arg1">arg2</a>

+ is a string concatenation so in the above, 'mailto:' + siteowner is
just the concatenation of the literal string mailto: with the string
which is the value of siteowner.

Thus, in the above you could replace the siteowner occurrences with the
literal string '[EMAIL PROTECTED]' or you could replace

 siteowner = Utils.get_site_email()

a few lines above with

 siteowner = '[EMAIL PROTECTED]'

BUT.....

Changing this code is not a good way to do this. The siteowner address
is the address of the site list - [EMAIL PROTECTED] in your
case. The way to accomplish what you want is just to subscribe the
address [EMAIL PROTECTED] to the [EMAIL PROTECTED]
list.

By doing it in this latter way as intended, you can change the
recipient(s) just by changing the membership of the site list. If you
change the code, you have to keep changing it, and you have to
remember to change it again anytime you install a Mailman upgrade.

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

------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
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/

Reply via email to