pykolab/imap
Jeroen van Meeuwen
vanmeeuwen at kolabsys.com
Fri Jan 25 19:53:09 CET 2013
pykolab/imap/__init__.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit e61f69b7ea6a980b15369103b71e43f17ed74d5a
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date: Fri Jan 25 18:52:44 2013 +0000
Log an error if the administrator password is empty
Subscribe the user to the folders we create despite the namespace
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 705e09f..baf7b30 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -135,6 +135,9 @@ class IMAP(object):
admin_login = conf.get(backend, 'admin_login')
admin_password = conf.get(backend, 'admin_password')
+ if admin_password == None or admin_password == '':
+ log.error(_("No administrator password is available."))
+
if not self._imap.has_key(hostname):
if backend == 'cyrus-imap':
import cyrus
@@ -518,6 +521,15 @@ class IMAP(object):
if _folder.startswith(_test):
_subscribe = False
+ # If the namespace prefix for "shared" is "", we need to
+ # catch this.
+ for __test in _tests:
+ if _subscribe:
+ continue
+
+ if _folder.startswith(__test):
+ _subscribe = True
+
if _subscribe:
log.debug(_("Subscribing %s to folder %s") % (folder, _folder), level=8)
self.subscribe(_folder)
More information about the commits
mailing list