summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-29 15:02:33 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-29 15:02:33 +0200
commitbc7fba1f1f1e0afab921b069be6e7d9c562addda (patch)
tree76f60c76bff135cf4df1dfc793dcd88f0b7c577b /pykolab/imap
parenta60e0128a79fa02add67c517538946a772deaf23 (diff)
downloadpykolab-bc7fba1f1f1e0afab921b069be6e7d9c562addda.tar.gz
Always call connect(), let it figure out whether it is already connected or not
Diffstat (limited to 'pykolab/imap')
-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)