diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-07-04 17:08:08 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-07-04 17:08:08 +0100 |
commit | 6c2dae837e31a9bd063c49bb03746d681a2b76d2 (patch) | |
tree | bdec0b12818580e2bb7e4f875df974976e3e77cb /pykolab/imap/cyrus.py | |
parent | b7d8802c82886067d6849612397d31215456d3a0 (diff) | |
download | pykolab-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/cyrus.py')
-rw-r--r-- | pykolab/imap/cyrus.py | 3 |
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] |