summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-17 09:56:11 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-17 09:56:11 +0100
commit73776a82589d28257f06ab84bb872ab89c83ef7c (patch)
treea4e4769f92587179eb5fc16eede9c0f0bd819737 /pykolab/imap
parentc62189144721d0c8aa7e8a37f75eaa45fcb0735f (diff)
downloadpykolab-73776a82589d28257f06ab84bb872ab89c83ef7c.tar.gz
try/except setting annotations on folders (#705)
Diffstat (limited to 'pykolab/imap')
-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))