summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-23 15:38:27 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-23 15:39:52 +0100
commite23e8ea12e43dfcf58a90f477ff2be31f21b71ec (patch)
tree966914af9f6c873cb54e5d942f2f5d6750b22264 /pykolab
parent71bbac8d8f9ee0b4222a373c9c42b4d049dec1ee (diff)
downloadpykolab-e23e8ea12e43dfcf58a90f477ff2be31f21b71ec.tar.gz
Reconnect after "login as..."
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/imap/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index f0cb9be..3eb6de4 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -490,6 +490,8 @@ class IMAP(object):
_tests.append(_shared)
for _folder in self.lm():
+ log.debug(_("Folder %s") % (_folder), level=8)
+
_subscribe = True
for _test in _tests:
@@ -500,9 +502,11 @@ class IMAP(object):
_subscribe = False
if _subscribe:
+ log.debug(_("Subscribing %s to folder %s") % (folder, _folder), level=8)
self.subscribe(_folder)
self.logout()
+ self.connect(domain=self.domain)
def user_mailbox_delete(self, mailbox_base_name):
"""