VirtualMailManager/constants.py
branchv0.6.x
changeset 316 31d8931dc535
child 317 d619e97a8f18
equal deleted inserted replaced
315:81bccfd14355 316:31d8931dc535
       
     1 # -*- coding: UTF-8 -*-
       
     2 # Copyright (c) 2007 - 2010, Pascal Volk
       
     3 # See COPYING for distribution information.
       
     4 """
       
     5     VirtualMailManager.constants
       
     6     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
     7 
       
     8     VirtualMailManager's constants:
       
     9         * version information
       
    10         * exit codes
       
    11         * error codes
       
    12 """
       
    13 # version information
       
    14 
       
    15 __all__ = ['__author__', '__date__', '__version__']
       
    16 AUTHOR = 'Pascal Volk <neverseen@users.sourceforge.net>'
       
    17 RELDATE = '2009-09-09'
       
    18 VERSION = '0.5.2'
       
    19 __author__ = AUTHOR
       
    20 __date__ = RELDATE
       
    21 __version__ = VERSION
       
    22 
       
    23 
       
    24 # exit codes
       
    25 
       
    26 EX_SUCCESS = 0
       
    27 EX_MISSING_ARGS = 1
       
    28 EX_UNKNOWN_COMMAND = 2
       
    29 EX_USER_INTERRUPT = 3
       
    30 
       
    31 
       
    32 # error codes
       
    33 
       
    34 ACCOUNT_AND_ALIAS_PRESENT = 20
       
    35 ACCOUNT_EXISTS = 21
       
    36 ACCOUNT_MISSING_PASSWORD = 69
       
    37 ACCOUNT_PRESENT = 22
       
    38 ALIASDOMAIN_EXISTS = 23
       
    39 ALIASDOMAIN_ISDOMAIN = 24
       
    40 ALIASDOMAIN_NO_DOMDEST = 25
       
    41 ALIAS_ADDR_DEST_IDENTICAL = 26
       
    42 ALIAS_EXCEEDS_EXPANSION_LIMIT = 27
       
    43 ALIAS_EXISTS = 28
       
    44 ALIAS_MISSING_DEST = 29
       
    45 ALIAS_PRESENT = 30
       
    46 CONF_ERROR = 31
       
    47 CONF_NOFILE = 32
       
    48 CONF_NOPERM = 33
       
    49 CONF_WRONGPERM = 34
       
    50 DATABASE_ERROR = 35
       
    51 DOMAINDIR_GROUP_MISMATCH = 36
       
    52 DOMAIN_ALIAS_EXISTS = 37
       
    53 DOMAIN_EXISTS = 38
       
    54 DOMAIN_INVALID = 39
       
    55 DOMAIN_NO_NAME = 40
       
    56 DOMAIN_TOO_LONG = 41
       
    57 FOUND_DOTS_IN_PATH = 42
       
    58 INVALID_ADDRESS = 43
       
    59 INVALID_ARGUMENT = 44
       
    60 INVALID_MAIL_LOCATION = 70
       
    61 INVALID_OPTION = 45
       
    62 INVALID_SECTION = 46
       
    63 LOCALPART_INVALID = 47
       
    64 LOCALPART_TOO_LONG = 48
       
    65 MAILDIR_PERM_MISMATCH = 49
       
    66 MAILLOCATION_INIT = 50
       
    67 NOT_EXECUTABLE = 51
       
    68 NO_SUCH_ACCOUNT = 52
       
    69 NO_SUCH_ALIAS = 53
       
    70 NO_SUCH_ALIASDOMAIN = 54
       
    71 NO_SUCH_BINARY = 55
       
    72 NO_SUCH_DIRECTORY = 56
       
    73 NO_SUCH_DOMAIN = 57
       
    74 NO_SUCH_RELOCATED = 58
       
    75 RELOCATED_ADDR_DEST_IDENTICAL = 59
       
    76 RELOCATED_EXISTS = 60
       
    77 RELOCATED_MISSING_DEST = 61
       
    78 TRANSPORT_INIT = 62
       
    79 UNKNOWN_MAILLOCATION_ID = 63
       
    80 UNKNOWN_MAILLOCATION_NAME = 64
       
    81 UNKNOWN_SERVICE = 65
       
    82 UNKNOWN_TRANSPORT_ID = 66
       
    83 VMM_ERROR = 67
       
    84 VMM_TOO_MANY_FAILURES = 68