equal
deleted
inserted
replaced
2 # Copyright (c) 2008 - 2009, VEB IT |
2 # Copyright (c) 2008 - 2009, VEB IT |
3 # See COPYING for distribution information. |
3 # See COPYING for distribution information. |
4 |
4 |
5 """Virtual Mail Manager's EmailAddress class to handle e-mail addresses.""" |
5 """Virtual Mail Manager's EmailAddress class to handle e-mail addresses.""" |
6 |
6 |
7 from constants.VERSION import * |
7 from __main__ import re, ERR |
8 |
|
9 import re |
|
10 |
|
11 from Exceptions import VMMEmailAddressException as VMMEAE |
8 from Exceptions import VMMEmailAddressException as VMMEAE |
12 import VirtualMailManager as VMM |
9 import VirtualMailManager as VMM |
13 import constants.ERROR as ERR |
|
14 |
10 |
15 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]""" |
11 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]""" |
16 |
12 |
17 class EmailAddress(object): |
13 class EmailAddress(object): |
18 __slots__ = ('_localpart', '_domainname') |
14 __slots__ = ('_localpart', '_domainname') |