VMM/account: Check the account's transport only when we have a transport.
--- 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'.") %