summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw1998-12-29 05:35:09 +0000
committerbwarsaw1998-12-29 05:35:09 +0000
commitef516f869588846743386b27069c33b694a3e4ae (patch)
treeb5f8987a8f39c365c962266326f3dee5b8d4326f /Mailman/Utils.py
parent6abbe495336895e43df4492125cb5b9f39a0a75e (diff)
downloadmailman-ef516f869588846743386b27069c33b694a3e4ae.tar.gz
mailman-ef516f869588846743386b27069c33b694a3e4ae.tar.zst
mailman-ef516f869588846743386b27069c33b694a3e4ae.zip
Fixed two instances where the old module named mm_err was being
referenced; these should be Errors. This was in response to an attempt to subscribe a list to itself by sending an subscribe email command and faking the From: field. Now we don't get a crash, but I'm not sure the current behavior is correct. The address (properly) doesn't get subscribed, but a message stating this *is* sent to the list!
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index a2c8c2630..a7cd3d83a 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -32,7 +32,7 @@ import regsub
import fcntl
import random
import mm_cfg
-
+import Errors
def list_names():
"""Return the names of all lists in default list directory."""
@@ -233,10 +233,10 @@ def ValidEmail(str):
# Pretty minimal, cheesy check. We could do better...
if ((string.find(str, '|') <> -1) or (string.find(str, ';') <> -1)
or str[0] == '-'):
- raise mm_err.MMHostileAddress
+ raise Errors.MMHostileAddress
if string.find(str, '/') <> -1:
if os.path.isdir(os.path.split(str)[0]):
- raise mm_err.MMHostileAddress
+ raise Errors.MMHostileAddress
user, domain_parts = ParseEmail(str)
if not domain_parts:
if string.find(str, '@') < 1: