summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorklm1998-04-23 15:49:40 +0000
committerklm1998-04-23 15:49:40 +0000
commit642dd9b7d29541f9621f2844a0a2ba2013e93b10 (patch)
treeb61aaf6e64f9dddeaff503b340311083947e8816 /modules
parent22e2ef1261977f24404a0fb959ce5c433e057bab (diff)
downloadmailman-642dd9b7d29541f9621f2844a0a2ba2013e93b10.tar.gz
mailman-642dd9b7d29541f9621f2844a0a2ba2013e93b10.tar.zst
mailman-642dd9b7d29541f9621f2844a0a2ba2013e93b10.zip
Diffstat (limited to 'modules')
-rw-r--r--modules/mm_utils.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/mm_utils.py b/modules/mm_utils.py
index cde26f78a..7b78a534f 100644
--- a/modules/mm_utils.py
+++ b/modules/mm_utils.py
@@ -5,7 +5,7 @@ message and address munging, a handy-dandy routine to map a function on all
the maillists, the Logging routines, and whatever else doesn't belong
elsewhere."""
-__version__ = "$Revision: 462 $"
+__version__ = "$Revision: 464 $"
import sys, string, fcntl, os, random, regsub, re
@@ -111,16 +111,16 @@ def ValidEmail(str):
return 1
if len(domain_parts) < 2:
return 0
- if domain_parts[-1] not in valid_toplevels:
- if len(domain_parts) <> 4:
- return 0
- try:
- domain_parts = map(eval, domain_parts)
- except:
- return 0
- for i in domain_parts:
- if i < 0 or i > 255:
- return 0
+## if domain_parts[-1] not in valid_toplevels:
+## if len(domain_parts) <> 4:
+## return 0
+## try:
+## domain_parts = map(eval, domain_parts)
+## except:
+## return 0
+## for i in domain_parts:
+## if i < 0 or i > 255:
+## return 0
return 1