From be9208323119b21d3fc03e895da42c8440f1f02f Mon Sep 17 00:00:00 2001 From: klm Date: Sun, 8 Mar 1998 17:03:38 +0000 Subject: HTMLFormatter.FormatOneUser(): Use new ObscureEmail() routine to mask the email address from web spiders, to thwart spam address scrapers. The url passed to the options script is always transfored, but the id presented textually only is when list.obscure_addresses is set. --- Mailman/HTMLFormatter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Mailman/HTMLFormatter.py') diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index 83b57dd9c..79322d9a7 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -49,8 +49,13 @@ class HTMLFormatter: def FormatOneUser(person, me=self): import htmlformat, os + id = mm_utils.ObscureEmail(person) + if me.obscure_addresses: + showing = mm_utils.ObscureEmail(person, for_text=1) + else: + showing = person return htmlformat.Link(os.path.join(me.GetScriptURL('options'), - person), person) + id), showing) items = map(FormatOneUser, people) # Just return the .Format() so this works until I finish # converting everything to htmlformat... -- cgit v1.2.3-70-g09d2