VirtualMailManager/EmailAddress.py
branchv0.6.x
changeset 316 31d8931dc535
parent 290 e2785e04f92e
equal deleted inserted replaced
315:81bccfd14355 316:31d8931dc535
     8     Virtual Mail Manager's EmailAddress class to handle e-mail addresses.
     8     Virtual Mail Manager's EmailAddress class to handle e-mail addresses.
     9 """
     9 """
    10 import re
    10 import re
    11 
    11 
    12 from VirtualMailManager.Domain import check_domainname
    12 from VirtualMailManager.Domain import check_domainname
    13 from VirtualMailManager.constants.ERROR import \
    13 from VirtualMailManager.constants import \
    14      DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID, LOCALPART_TOO_LONG
    14      DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID, LOCALPART_TOO_LONG
    15 from VirtualMailManager.errors import EmailAddressError as EAErr
    15 from VirtualMailManager.errors import EmailAddressError as EAErr
    16 
    16 
    17 
    17 
    18 RE_LOCALPART = re.compile(r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]")
    18 RE_LOCALPART = re.compile(r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]")