summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2009-02-12 22:55:01 -0500
committerBarry Warsaw2009-02-12 22:55:01 -0500
commit2ad93a63b5c8f8222aa4d220c648222ec4b43694 (patch)
treeb68d5a5ab0849153629ad2b83bb0adccd0125ec9 /src
parent8d43a75b5c7a278bbf9f5bd5143bee4b2925f3b1 (diff)
downloadmailman-2ad93a63b5c8f8222aa4d220c648222ec4b43694.tar.gz
mailman-2ad93a63b5c8f8222aa4d220c648222ec4b43694.tar.zst
mailman-2ad93a63b5c8f8222aa4d220c648222ec4b43694.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman/Utils.py21
1 files changed, 0 insertions, 21 deletions
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
@@ -147,27 +147,6 @@ def wrap(text, column=70, honor_leading_ws=True):
-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',
'p', 'r', 's', 't', 'v', 'w', 'x', 'z')