equal
deleted
inserted
replaced
429 if not miss_vers: |
429 if not miss_vers: |
430 value = self.get('misc', 'dovecot_version') |
430 value = self.get('misc', 'dovecot_version') |
431 if not VERSION_RE.match(value): |
431 if not VERSION_RE.match(value): |
432 self._missing['misc'] = ['version: ' +\ |
432 self._missing['misc'] = ['version: ' +\ |
433 _(u"Not a valid Dovecot version: '%s'") % value] |
433 _(u"Not a valid Dovecot version: '%s'") % value] |
|
434 # section database |
434 db_err = [] |
435 db_err = [] |
435 value = self.dget('database.module').lower() |
436 value = self.dget('database.module').lower() |
436 if value not in DB_MUDULES: |
437 if value not in DB_MUDULES: |
437 db_err.append('module: ' + \ |
438 db_err.append('module: ' + \ |
438 _(u"Unsupported database module: '%s'") % value) |
439 _(u"Unsupported database module: '%s'") % value) |
441 if value not in DB_SSL_MODES: |
442 if value not in DB_SSL_MODES: |
442 db_err.append('sslmode: ' + \ |
443 db_err.append('sslmode: ' + \ |
443 _(u"Unknown pgsql SSL mode: '%s'") % value) |
444 _(u"Unknown pgsql SSL mode: '%s'") % value) |
444 if db_err: |
445 if db_err: |
445 self._missing['database'] = db_err |
446 self._missing['database'] = db_err |
|
447 # section mailbox |
|
448 value = self.dget('mailbox.format') |
|
449 if not known_format(value): |
|
450 self._missing['mailbox'] = ['format: ' +\ |
|
451 _(u"Unsupported mailbox format: '%s'") % value] |
446 |
452 |
447 |
453 |
448 def is_dir(path): |
454 def is_dir(path): |
449 """Check if the expanded path is a directory. When the expanded path |
455 """Check if the expanded path is a directory. When the expanded path |
450 is a directory the expanded path will be returned. Otherwise a |
456 is a directory the expanded path will be returned. Otherwise a |