summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-13 12:17:28 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-13 12:17:28 +0200
commit4aaf10490bde409613569b7e4c4a51bf522482cc (patch)
tree44b49d5324b31a1743cef73a29249aa66e604c32
parent7350f6c2bde2d6f56b4f1e42b3d7936f7d7b2cc8 (diff)
downloadpykolab-4aaf10490bde409613569b7e4c4a51bf522482cc.tar.gz
Reconnect if necessary (#4739)
-rw-r--r--pykolab/imap/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 6eae0c1..9c087ef 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -240,6 +240,8 @@ class IMAP(object):
)
else:
+ self.connect()
+
try:
self.imap.cm(folder_path, partition=partition)
return True