summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
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:38:27 +0100
commit3c531785caf90498c76e2bc2d58ca277048fb2ee (patch)
tree56eeefa0ba1e35a9b5c19a0dcbe599aa5b4e9c13 /pykolab/imap
parent2d3b0045a6146424077294b40f0c720d73af9869 (diff)
downloadpykolab-3c531785caf90498c76e2bc2d58ca277048fb2ee.tar.gz
Reconnect after "login as..."
Diffstat (limited to 'pykolab/imap')
-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 13857f9..242fe00 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -489,6 +489,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:
@@ -499,9 +501,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):
"""