summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/imap/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 33984bf..6cec86f 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -211,8 +211,7 @@ class IMAP(object):
folder_path = self.folder_utf7(folder_path)
if not server == None:
- if not self._imap.has_key(server):
- self.connect(server=server)
+ self.connect(server=server)
try:
self._imap[server].cm(folder_path, partition=partition)