diff options
| author | klm | 1998-04-23 15:49:40 +0000 |
|---|---|---|
| committer | klm | 1998-04-23 15:49:40 +0000 |
| commit | 642dd9b7d29541f9621f2844a0a2ba2013e93b10 (patch) | |
| tree | b61aaf6e64f9dddeaff503b340311083947e8816 | |
| parent | 22e2ef1261977f24404a0fb959ce5c433e057bab (diff) | |
| download | mailman-642dd9b7d29541f9621f2844a0a2ba2013e93b10.tar.gz mailman-642dd9b7d29541f9621f2844a0a2ba2013e93b10.tar.zst mailman-642dd9b7d29541f9621f2844a0a2ba2013e93b10.zip | |
| -rw-r--r-- | Mailman/Utils.py | 22 | ||||
| -rw-r--r-- | modules/mm_utils.py | 22 |
2 files changed, 22 insertions, 22 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index cde26f78a..7b78a534f 100644 --- a/Mailman/Utils.py +++ b/Mailman/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 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 |
