summaryrefslogtreecommitdiffstats
path: root/pykolab
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:36:10 +0100
commit8dd7946abde86de2ddc99396b22a8486f1fa0519 (patch)
tree6ac82c0c2f1588910ba691f6effb46bf36b0c22c /pykolab
parent9c4c10371707bdd20a7696387617f7b8d7116228 (diff)
downloadpykolab-8dd7946abde86de2ddc99396b22a8486f1fa0519.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')
-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: