summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-04 17:08:08 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-04 17:08:08 +0100
commit6c2dae837e31a9bd063c49bb03746d681a2b76d2 (patch)
treebdec0b12818580e2bb7e4f875df974976e3e77cb /pykolab/imap
parentb7d8802c82886067d6849612397d31215456d3a0 (diff)
downloadpykolab-6c2dae837e31a9bd063c49bb03746d681a2b76d2.tar.gz
If the folder does not exist, there's no annotations to be returned. This is a case for undelete.
Diffstat (limited to 'pykolab/imap')
-rw-r--r--pykolab/imap/cyrus.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
index a40d31d..eb239ad 100644
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -93,6 +93,9 @@ class Cyrus(cyruslib.CYRUS):
if not _mailbox['domain'] == None:
mailbox = "%s%s%s@%s" %(prefix,self.seperator,mbox,_mailbox['domain'])
+ if len(self.lm(mailbox)) < 1:
+ return self.server
+
log.debug(_("Checking actual backend server for folder %s through annotations") %(mailbox), level=8)
if self.mbox.has_key(mailbox):
return self.mbox[mailbox]