pykolab/imap

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Tue Jul 29 15:02:59 CEST 2014


 pykolab/imap/__init__.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit bc7fba1f1f1e0afab921b069be6e7d9c562addda
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Tue Jul 29 15:02:33 2014 +0200

    Always call connect(), let it figure out whether it is already connected or not

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)




More information about the commits mailing list