summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-04 12:35:36 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-04 12:35:36 +0100
commit1895521a9de5b7e852d8b0ac3b5181c0be913b6b (patch)
treeafaabefef5e23338f743d2f228e99fc4a8fe89e4 /pykolab/imap
parent34d5b5c37ed51c3391f683179f04d2a88056637a (diff)
downloadpykolab-1895521a9de5b7e852d8b0ac3b5181c0be913b6b.tar.gz
Make sure we don't attempt to parse a mailbox path in full, while we are logged in as a user
Diffstat (limited to 'pykolab/imap')
-rw-r--r--pykolab/imap/cyrus.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
index 02a49b4..bc2a13e 100644
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -224,12 +224,13 @@ class Cyrus(cyruslib.CYRUS):
"""
Login to the actual backend server, then set annotation.
"""
- server = self.find_mailfolder_server(mailfolder)
+ try:
+ server = self.find_mailfolder_server(mailfolder)
+ except:
+ server = self.server
log.debug(_("Setting annotation %s on folder %s") % (annotation,mailfolder), level=8)
- #if annotation.startswith('/private'):
-
try:
self.setannotation(mailfolder, annotation, value, shared)
except cyruslib.CYRUSError, e: