VMM/account: Check the account's transport only when we have a transport. v0.6.x
authorPascal Volk <user@localhost.localdomain.org>
Wed, 27 Jun 2012 12:46:27 +0000
branchv0.6.x
changeset 560 2662f4e17eb4
parent 559 cc0f67f99780
child 561 b0165b7af7a3
VMM/account: Check the account's transport only when we have a transport.
VirtualMailManager/account.py
--- a/VirtualMailManager/account.py	Wed Jun 27 12:18:53 2012 +0000
+++ b/VirtualMailManager/account.py	Wed Jun 27 12:46:27 2012 +0000
@@ -124,7 +124,7 @@
                        'mbfmt': maillocation.mbformat,
                        'version': version_str(maillocation.dovecot_version)},
                        INVALID_MAIL_LOCATION)
-        if not maillocation.postfix and \
+        if self._transport and not maillocation.postfix and \
           self._transport.transport.lower() in ('virtual:', 'virtual'):
             raise AErr(_(u"Invalid transport '%(transport)s' for mailbox "
                          u"format '%(mbfmt)s'.") %