summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/imap/cyrus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
index 9907c44..15a7d00 100644
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -195,7 +195,7 @@ class Cyrus(cyruslib.CYRUS):
)
# TODO: Workaround for undelete
- if len(self.lm(mailfolder)) < 1 and _mailfolder['hex_timestamp']:
+ if len(self.lm(mailfolder)) < 1 and 'hex_timestamp' in _mailfolder:
mailfolder = self.folder_utf7("DELETED/%s%s%s@%s" % (
self.separator.join(_mailfolder['path_parts']),
self.separator,