summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-02 12:02:55 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-02 12:02:55 +0000
commitc3e345d80f65657741475fcb93d907f0ee96d260 (patch)
tree635bb48d83e2f3cf1985a6c14adae5b3f4a2148a
parent336be8ce36f282d08a9d79f871390765be3bda4b (diff)
downloadpykolab-c3e345d80f65657741475fcb93d907f0ee96d260.tar.gz
Temporary disable additional_folders from being actively used,
Log to debug channel instead of printing messages
-rw-r--r--pykolab/imap/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index d044269..342ad5b 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -74,12 +74,12 @@ class IMAP(object):
self.log.info(_("Creating new INBOX for user: %s") %(folder))
self.imap.cm("user/%s" %(folder))
self.imap.sq("user/%s" %(folder), 0)
- additional_folders = self.conf.plugins.exec_hook("create_user_folders", args=(folder))
+# additional_folders = self.conf.plugins.exec_hook("create_user_folders", args=(folder))
except:
self.log.info(_("Creating new INBOX for user: %s") %(folder))
self.imap.cm("user/%s" %(folder))
self.imap.sq("user/%s" %(folder), 0)
- additional_folders = self.conf.plugins.exec_hook("create_user_folders", args=(folder))
+# additional_folders = self.conf.plugins.exec_hook("create_user_folders", args=(folder))
if not additional_folders == None:
self.create_user_additional_folders(folder, additional_folders)
@@ -139,8 +139,6 @@ class IMAP(object):
new_quota = self.conf.plugins.exec_hook("set_user_folder_quota", args=(used, current_quota, int(quota)))
- print new_quota
-
if new_quota and not new_quota == int(quota):
self.log.debug(_("Setting new quota for folder %s to %r") %(folder, new_quota), level=9)
quota = new_quota
@@ -170,7 +168,7 @@ class IMAP(object):
inbox_folders = list(set(inbox_folders))
for folder in folders:
- print "Checking folder: %s" %(folder)
+ self.log.debug(_("Checking folder: %s") %(folder), level=1)
try:
if inbox_folders.index(folder) > -1:
continue