VirtualMailManager/Config.py
changeset 20 55146c78b3fb
parent 9 e3d3dbeb5b84
child 21 6feb31787a66
equal deleted inserted replaced
19:bf9a03c476fc 20:55146c78b3fb
    55                 ['base', '/home/mail'],
    55                 ['base', '/home/mail'],
    56                 ['folder', 'Maildir'],
    56                 ['folder', 'Maildir'],
    57                 ['mode', 448],
    57                 ['mode', 448],
    58                 ['diskusage', 'false'],
    58                 ['diskusage', 'false'],
    59                 ['delete', 'false']
    59                 ['delete', 'false']
       
    60                 ]
       
    61         self.__serviceopts = [
       
    62                 ['smtp', 'true'],
       
    63                 ['pop3', 'true'],
       
    64                 ['imap', 'true'],
       
    65                 ['managesieve', 'true']
    60                 ]
    66                 ]
    61         self.__domdopts = [
    67         self.__domdopts = [
    62                 ['mode', 504],
    68                 ['mode', 504],
    63                 ['delete', 'false']
    69                 ['delete', 'false']
    64                 ]
    70                 ]
   156         missing = []
   162         missing = []
   157         if section == 'database':
   163         if section == 'database':
   158             opts = self.__dbopts
   164             opts = self.__dbopts
   159         elif section == 'maildir':
   165         elif section == 'maildir':
   160             opts = self.__mdopts
   166             opts = self.__mdopts
       
   167         elif section == 'services':
       
   168             opts = self.__serviceopts
   161         elif section == 'domdir':
   169         elif section == 'domdir':
   162             opts = self.__domdopts
   170             opts = self.__domdopts
   163         elif section == 'bin':
   171         elif section == 'bin':
   164             opts = self.__binopts
   172             opts = self.__binopts
   165         elif section == 'misc':
   173         elif section == 'misc':