2 # Copyright (c) 2007 - 2010, Pascal Volk |
2 # Copyright (c) 2007 - 2010, Pascal Volk |
3 # See COPYING for distribution information. |
3 # See COPYING for distribution information. |
4 |
4 |
5 """Virtual Mail Manager's Account class to manage e-mail accounts.""" |
5 """Virtual Mail Manager's Account class to manage e-mail accounts.""" |
6 |
6 |
7 from __main__ import ERR |
7 import VirtualMailManager.constants.ERROR as ERR |
8 from Exceptions import VMMAccountException as AccE |
8 from VirtualMailManager.Domain import Domain |
9 from Domain import Domain |
9 from VirtualMailManager.EmailAddress import EmailAddress |
10 from Transport import Transport |
10 from VirtualMailManager.Exceptions import VMMAccountException as AccE |
11 from MailLocation import MailLocation |
11 from VirtualMailManager.MailLocation import MailLocation |
12 from EmailAddress import EmailAddress |
12 from VirtualMailManager.Transport import Transport |
13 import VirtualMailManager as VMM |
13 import VirtualMailManager as VMM |
14 |
14 |
15 class Account(object): |
15 class Account(object): |
16 """Class to manage e-mail accounts.""" |
16 """Class to manage e-mail accounts.""" |
17 __slots__ = ('_addr','_base','_gid','_mid','_passwd','_tid','_uid','_dbh') |
17 __slots__ = ('_addr','_base','_gid','_mid','_passwd','_tid','_uid','_dbh') |