VirtualMailManager/account.py
branchv0.6.x
changeset 560 2662f4e17eb4
parent 559 cc0f67f99780
child 561 b0165b7af7a3
equal deleted inserted replaced
559:cc0f67f99780 560:2662f4e17eb4
   122             raise AErr(_(u"The mailbox format '%(mbfmt)s' requires Dovecot "
   122             raise AErr(_(u"The mailbox format '%(mbfmt)s' requires Dovecot "
   123                          u">= v%(version)s.") % {
   123                          u">= v%(version)s.") % {
   124                        'mbfmt': maillocation.mbformat,
   124                        'mbfmt': maillocation.mbformat,
   125                        'version': version_str(maillocation.dovecot_version)},
   125                        'version': version_str(maillocation.dovecot_version)},
   126                        INVALID_MAIL_LOCATION)
   126                        INVALID_MAIL_LOCATION)
   127         if not maillocation.postfix and \
   127         if self._transport and not maillocation.postfix and \
   128           self._transport.transport.lower() in ('virtual:', 'virtual'):
   128           self._transport.transport.lower() in ('virtual:', 'virtual'):
   129             raise AErr(_(u"Invalid transport '%(transport)s' for mailbox "
   129             raise AErr(_(u"Invalid transport '%(transport)s' for mailbox "
   130                          u"format '%(mbfmt)s'.") %
   130                          u"format '%(mbfmt)s'.") %
   131                        {'transport': self._transport,
   131                        {'transport': self._transport,
   132                         'mbfmt': maillocation.mbformat}, INVALID_MAIL_LOCATION)
   132                         'mbfmt': maillocation.mbformat}, INVALID_MAIL_LOCATION)