VirtualMailManager/VirtualMailManager.py
changeset 87 f9090d1a0730
parent 86 e43e4e7e9ec0
child 88 b3debcfea7bc
--- a/VirtualMailManager/VirtualMailManager.py	Tue Sep 16 05:55:54 2008 +0000
+++ b/VirtualMailManager/VirtualMailManager.py	Tue Sep 16 20:03:09 2008 +0000
@@ -151,13 +151,11 @@
         Keyword arguments:
         domainname -- the domain name that should be validated
         """
-        re.compile(RE_ASCII_CHARS)
         if not re.match(RE_ASCII_CHARS, domainname):
             domainname = VirtualMailManager.idn2ascii(domainname)
         if len(domainname) > 255:
             raise VMMException(_(u'The domain name is too long.'),
                 ERR.DOMAIN_TOO_LONG)
-        re.compile(RE_DOMAIN)
         if not re.match(RE_DOMAIN, domainname):
             raise VMMException(_(u'The domain name »%s« is invalid.') %\
                     domainname, ERR.DOMAIN_INVALID)
@@ -305,7 +303,6 @@
         oldpwd = os.getcwd()
         os.chdir(domdir)
 
-        re.compile(RE_MBOX_NAMES)
         maildir = self.__Cfg.get('maildir', 'name')
         folders = [maildir]
         for folder in self.__Cfg.get('maildir', 'folders').split(':'):
@@ -583,7 +580,6 @@
                     domain = pattern[1:]
                 elif pattern.endswith('%'):
                     domain = pattern[:-1]
-                re.compile(RE_DOMAIN_SRCH)
                 if not re.match(RE_DOMAIN_SRCH, domain):
                     raise VMMException(
                     _(u"The pattern »%s« contains invalid characters.") %