From ee67904a3d338f0dd7f60f4bc8b396f8d6f6e243 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 29 Aug 2001 05:57:40 +0000 Subject: GetMailmanFooter(): Don't hyperlink each individual list owner with a mailto: to their personal email address. Instead, hyperlink the lot of them with a mailto: to the list's -owner address. That let's us do a spam detect on the message before forwarding on the owners. --- Mailman/HTMLFormatter.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index 2be13b52d..cb55a2a59 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -29,18 +29,14 @@ from Mailman.i18n import _ EMPTYSTRING = '' BR = '
' NL = '\n' +COMMASPACE = ', ' class HTMLFormatter: def GetMailmanFooter(self): - owners_html = Container() - for i in range(len(self.owner)): - owner = self.owner[i] - owners_html.AddItem(Link('mailto:%s' % owner, owner)) - if i + 1 <> len(self.owner): - owners_html.AddItem(', ') - + ownertext = COMMASPACE.join([Utils.ObscureEmail(a, 1) + for a in self.owner]) # Remove the .Format() when htmlformat conversion is done. realname = self.real_name hostname = self.host_name @@ -49,7 +45,8 @@ class HTMLFormatter: Address( Container( Link(self.GetScriptURL('listinfo'), self.real_name), - _(' list run by '), owners_html, + _(' list run by '), + Link('mailto:' + self.GetOwnerEmail(), ownertext), '
', Link(self.GetScriptURL('admin'), _('%(realname)s administrative interface')), -- cgit v1.3.1