Dave's Brain

Browse - programming tips - hide admin email in mailman

Date: 2009apr7
Language: python
OS: Linux

Q.  How can I hide the admistrator's email address in Mailman?

A.  I have not found an option for this so I modified file
/usr/lib/mailman/Mailman/htmlformat.py

by adding the 2 lines marked "davekb change"

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[0:7] == 'mailto:': # davekb change
                return '<i>(mail hidden because of spammers)</i>' # davekb
change

What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2010, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.