VirtualMailManager/account.py
branchv0.6.x
changeset 442 abcd73f5e980
parent 417 8209da83e256
child 444 95275b61ff8a
equal deleted inserted replaced
441:1af5fe0683ce 442:abcd73f5e980
     6     ~~~~~~~~~~~~~~~~~~~~~~~~~~
     6     ~~~~~~~~~~~~~~~~~~~~~~~~~~
     7 
     7 
     8     Virtual Mail Manager's Account class to manage e-mail accounts.
     8     Virtual Mail Manager's Account class to manage e-mail accounts.
     9 """
     9 """
    10 
    10 
    11 from VirtualMailManager.domain import Domain
       
    12 from VirtualMailManager.emailaddress import EmailAddress
       
    13 from VirtualMailManager.quotalimit import QuotaLimit
       
    14 from VirtualMailManager.transport import Transport
       
    15 from VirtualMailManager.common import version_str
    11 from VirtualMailManager.common import version_str
    16 from VirtualMailManager.constants import \
    12 from VirtualMailManager.constants import \
    17      ACCOUNT_EXISTS, ACCOUNT_MISSING_PASSWORD, ALIAS_PRESENT, \
    13      ACCOUNT_EXISTS, ACCOUNT_MISSING_PASSWORD, ALIAS_PRESENT, \
    18      INVALID_ARGUMENT, INVALID_MAIL_LOCATION, NO_SUCH_ACCOUNT, \
    14      INVALID_ARGUMENT, INVALID_MAIL_LOCATION, NO_SUCH_ACCOUNT, \
    19      NO_SUCH_DOMAIN, UNKNOWN_SERVICE, VMM_ERROR
    15      NO_SUCH_DOMAIN, UNKNOWN_SERVICE, VMM_ERROR
       
    16 from VirtualMailManager.domain import Domain
       
    17 from VirtualMailManager.emailaddress import EmailAddress
    20 from VirtualMailManager.errors import VMMError, AccountError as AErr
    18 from VirtualMailManager.errors import VMMError, AccountError as AErr
    21 from VirtualMailManager.maillocation import MailLocation
    19 from VirtualMailManager.maillocation import MailLocation
    22 from VirtualMailManager.password import pwhash
    20 from VirtualMailManager.password import pwhash
       
    21 from VirtualMailManager.quotalimit import QuotaLimit
       
    22 from VirtualMailManager.transport import Transport
    23 
    23 
    24 __all__ = ('SERVICES', 'Account', 'get_account_by_uid')
    24 __all__ = ('SERVICES', 'Account', 'get_account_by_uid')
    25 
    25 
    26 SERVICES = ('imap', 'pop3', 'smtp', 'sieve')
    26 SERVICES = ('imap', 'pop3', 'smtp', 'sieve')
    27 
    27