equal
deleted
inserted
replaced
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) |