From ef516f869588846743386b27069c33b694a3e4ae Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 29 Dec 1998 05:35:09 +0000 Subject: 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! --- Mailman/Utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Mailman/Utils.py') 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: -- cgit v1.2.3-70-g09d2