summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/imap/cyrus.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
index 2a40116..2dcb5ad 100644
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -198,7 +198,10 @@ class Cyrus(cyruslib.CYRUS):
#if annotation.startswith('/private'):
- imap.setannotation(mailfolder, annotation, value)
+ try:
+ imap.setannotation(mailfolder, annotation, value)
+ except cyruslib.CYRUSError, e:
+ log.error(_("Could not set annotation %r on mail folder %r: %r") % (annotation,mailfolder,e))
def _xfer(self, mailfolder, current_server, new_server):
imap.connect(self.uri.replace(self.server,current_server))