VMM/config: Added option mailbox.format to the configuration check. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 09 Aug 2010 19:00:50 +0000
branchv0.6.x
changeset 359 7fa919dab42c
parent 358 6fabb9cd212d
child 360 44283818f8db
VMM/config: Added option mailbox.format to the configuration check.
VirtualMailManager/config.py
--- a/VirtualMailManager/config.py	Mon Aug 09 08:25:11 2010 +0000
+++ b/VirtualMailManager/config.py	Mon Aug 09 19:00:50 2010 +0000
@@ -431,6 +431,7 @@
             if not VERSION_RE.match(value):
                 self._missing['misc'] = ['version: ' +\
                         _(u"Not a valid Dovecot version: '%s'") % value]
+        # section database
         db_err = []
         value = self.dget('database.module').lower()
         if value not in DB_MUDULES:
@@ -443,6 +444,11 @@
                               _(u"Unknown pgsql SSL mode: '%s'") % value)
         if db_err:
             self._missing['database'] = db_err
+        # section mailbox
+        value = self.dget('mailbox.format')
+        if not known_format(value):
+            self._missing['mailbox'] = ['format: ' +\
+                              _(u"Unsupported mailbox format: '%s'") % value]
 
 
 def is_dir(path):