diff -r e43e4e7e9ec0 -r f9090d1a0730 VirtualMailManager/MailLocation.py --- a/VirtualMailManager/MailLocation.py Tue Sep 16 05:55:54 2008 +0000 +++ b/VirtualMailManager/MailLocation.py Tue Sep 16 20:03:09 2008 +0000 @@ -18,7 +18,7 @@ from Exceptions import VMMMailLocationException as MLE import constants.ERROR as ERR -RE_MAILLOCATION = """^[\w]{1,20}$""" +RE_MAILLOCATION = """^\w{1,20}$""" class MailLocation: """A wrapper class thats provide access to the maillocation table""" @@ -43,7 +43,6 @@ raise MLE(_('mid must be an int/long.'), ERR.MAILLOCATION_INIT) self._loadByID() else: - re.compile(RE_MAILLOCATION) if re.match(RE_MAILLOCATION, maillocation): self.__maillocation = maillocation self._loadByName()