summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-11 13:13:33 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-11 13:13:33 +0000
commit5e895296887b134ca3d809a612ceccdc31795f78 (patch)
treef62793d9aeddcf34f02c3b0ad161a0048810352e /pykolab
parent70a3afdb2dd9175fbc7e7f8f155bca25e92fe42c (diff)
downloadpykolab-5e895296887b134ca3d809a612ceccdc31795f78.tar.gz
Lower-case the mailbox name for user mailboxes (#1455)
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 d0b7d08..1dcae4d 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -543,6 +543,10 @@ class IMAP(object):
"""
Check if a user mailbox exists.
"""
+ if not mailbox_base_name == mailbox_base_name.lower():
+ log.warning(_("Downcasing mailbox name %r") % (mailbox_base_name))
+ mailbox_base_name = mailbox_base_name.lower()
+
return self.has_folder('user%s%s' %(self.imap.separator, mailbox_base_name))
def user_mailbox_quota(self, mailbox_quota):