--- a/VirtualMailManager/mailbox.py Thu Jul 29 04:01:43 2010 +0000
+++ b/VirtualMailManager/mailbox.py Thu Jul 29 19:14:19 2010 +0000
@@ -15,7 +15,7 @@
from subprocess import Popen, PIPE
from VirtualMailManager.account import Account
-from VirtualMailManager.common import is_dir
+from VirtualMailManager.common import lisdir
from VirtualMailManager.errors import VMMError
from VirtualMailManager.constants import VMM_ERROR
@@ -94,8 +94,7 @@
Creates a new mailbox instance.
Use one of the `Maildir`, `SingleDbox` or `MultiDbox` classes.
"""
- assert isinstance(account, Account)
- is_dir(account.home)
+ assert isinstance(account, Account) and lisdir(account.home)
self._user = account
self._boxes = []
self._root = self._user.mail_location.directory