[Mailman-Users] Re: spambot and -owner address

djmcke djmcke at yahoo.com
Mon Jun 7 16:30:52 CEST 2004


Hi all, 

I posted:

> I know users mail addresses are hidden in the archive but what about *my* (our) addresses?
> Many Mailman generated webpages have a mailto: link to the list owner.
> It would be a real drag for me if a spambot harvested that address because I can't
> really rename the mail address so I'd just have to put up with the spam.
> I searched the archives but I didn't see any mention of this issue.

I figured out a solution to my problem.  Open source rocks.
I added two links in file htmlformat.py starting around line 217...

class Link:
    def __init__(self, href, text, target=None):
        self.href = href
        self.text = text
        self.target = target

    def Format(self, indent=0):
        texpr = ""
        if self.target != None:
            texpr = ' target="%s"' % self.target
        if self.href.find('mailto') == 0:   # NEW
                return '[mail address hidden from spambots]' # NEW
        return '<a href="%s"%s>%s</a>' % (HTMLFormatObject(self.href, indent),
                                          texpr,
                                          HTMLFormatObject(self.text, indent))

This hides most of the mailto's on my site.
I also use the admin interface to change the "info" page for each
list to remove the mailto's.

A more elegant patch would use the obfuscate mail addresses option to see
if this should be done.

Hope this helps somebody.

=====
Please ignore the following ad...


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 




More information about the Mailman-Users mailing list