VirtualMailManager/EmailAddress.py
branchv0.6.x
changeset 208 efa1327b721f
parent 199 0684790fff7c
child 213 1a9fee6b93bc
equal deleted inserted replaced
207:95be8f62bc0c 208:efa1327b721f
    12 from VirtualMailManager.constants.ERROR import \
    12 from VirtualMailManager.constants.ERROR import \
    13      DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID
    13      DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID
    14 from VirtualMailManager.Exceptions import VMMEmailAddressException as VMMEAE
    14 from VirtualMailManager.Exceptions import VMMEmailAddressException as VMMEAE
    15 
    15 
    16 
    16 
    17 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
       
    18 _ = lambda msg: msg
    17 _ = lambda msg: msg
    19 
    18 
    20 
    19 
    21 class EmailAddress(object):
    20 class EmailAddress(object):
    22     """Simple class for validated e-mail addresses."""
    21     """Simple class for validated e-mail addresses."""