equal
deleted
inserted
replaced
14 DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID, LOCALPART_TOO_LONG, \ |
14 DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID, LOCALPART_TOO_LONG, \ |
15 DOMAIN_INVALID |
15 DOMAIN_INVALID |
16 from VirtualMailManager.errors import DomainError, EmailAddressError as EAErr |
16 from VirtualMailManager.errors import DomainError, EmailAddressError as EAErr |
17 |
17 |
18 |
18 |
19 RE_LOCALPART = re.compile(r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]") |
19 RE_LOCALPART = re.compile(r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]", re.ASCII) |
20 _ = lambda msg: msg |
20 _ = lambda msg: msg |
21 |
21 |
22 |
22 |
23 class EmailAddress(object): |
23 class EmailAddress(object): |
24 """Simple class for validated e-mail addresses.""" |
24 """Simple class for validated e-mail addresses.""" |