equal
deleted
inserted
replaced
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!#$%&'\*\+-\.\/=?^_`{\|}~]") |