[Mailman-Users] newlist.py error after a debian install

Barry A. Warsaw barry at python.org
Tue Aug 13 14:33:49 CEST 2002

>>>>> "bear" ==   <bear at code-bear.dyndns.org> writes:

    bear> I used apt-get to install mailman (2.0.12-2) and when I run
    bear> newlist I get the following:

Looks like there's some custom stuff in that package, because that
code doesn't show up at all in the source for ValidateEmail() in

def ValidateEmail(str):
    """Verify that the an email address isn't grossly invalid."""
    # Pretty minimal, cheesy check.  We could do better...
    if not str:
        raise Errors.MMBadEmailError
    if _badchars.search(str) or str[0] == '-':
        raise Errors.MMHostileAddress
    if string.find(str, '/') <> -1 and \
        # then
        raise Errors.MMHostileAddress
    user, domain_parts = ParseEmail(str)
    # this means local, unqualified addresses, are no allowed
    if not domain_parts:
        raise Errors.MMBadEmailError
    if len(domain_parts) < 2:
	raise Errors.MMBadEmailError

I have no idea where that code's coming from.


More information about the Mailman-Users mailing list