From 2ad93a63b5c8f8222aa4d220c648222ec4b43694 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 12 Feb 2009 22:55:01 -0500 Subject: Remove one more unused function. --- src/mailman/Utils.py | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src') diff --git a/src/mailman/Utils.py b/src/mailman/Utils.py index 05da4c1d5..799703ba6 100644 --- a/src/mailman/Utils.py +++ b/src/mailman/Utils.py @@ -146,27 +146,6 @@ def wrap(text, column=70, honor_leading_ws=True): return wrapped[:-2] - -def GetPossibleMatchingAddrs(name): - """returns a sorted list of addresses that could possibly match - a given name. - - For Example, given scott@pobox.com, return ['scott@pobox.com'], - given scott@blackbox.pobox.com return ['scott@blackbox.pobox.com', - 'scott@pobox.com']""" - - name = name.lower() - from mailman.email.utils import split_email - user, domain = split_email(name) - res = [name] - if domain: - domain = domain[1:] - while len(domain) >= 2: - res.append("%s@%s" % (user, DOT.join(domain))) - domain = domain[1:] - return res - - _vowels = ('a', 'e', 'i', 'o', 'u') _consonants = ('b', 'c', 'd', 'f', 'g', 'h', 'k', 'm', 'n', -- cgit v1.2.3-70-g09d2