VirtualMailManager/EmailAddress.py
changeset 108 fb88585f17fe
parent 102 485d3f7d6981
child 116 949c5db6447a
equal deleted inserted replaced
107:e98a0fdf1266 108:fb88585f17fe
    13 import constants.ERROR as ERR
    13 import constants.ERROR as ERR
    14 
    14 
    15 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
    15 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
    16 
    16 
    17 class EmailAddress(object):
    17 class EmailAddress(object):
       
    18     __slots__ = ('_localpart', '_domainname')
    18     def __init__(self, address):
    19     def __init__(self, address):
    19         self._localpart = None
    20         self._localpart = None
    20         self._domainname = None
    21         self._domainname = None
    21         self.__chkAddress(address)
    22         self.__chkAddress(address)
    22     
    23