Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117822765
D551.1775296672.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D551.1775296672.diff
View Options
diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -173,8 +173,8 @@
_mailfolder = self.parse_mailfolder(mailfolder)
- prefix = _mailfolder['path_parts'].pop(0)
- mbox = _mailfolder['path_parts'].pop(0)
+ prefix = _mailfolder['path_parts'][0]
+ mbox = _mailfolder['path_parts'][1]
if _mailfolder['domain'] is not None:
mailfolder = "%s%s%s@%s" % (
prefix,
@@ -184,8 +184,14 @@
)
# TODO: Workaround for undelete
- if len(self.lm(mailfolder)) < 1:
- return self.server
+ if len(self.lm(mailfolder)) < 1 and _mailfolder['hex_timestamp']:
+ mailfolder = self.folder_utf7("DELETED/%s%s%s@%s" % (
+ self.separator.join(_mailfolder['path_parts']),
+ self.separator,
+ _mailfolder['hex_timestamp'],
+ _mailfolder['domain'])
+ )
+
# TODO: Murder capabilities may have been suppressed using Cyrus IMAP
# configuration.
@@ -225,7 +231,7 @@
while 1:
num_try += 1
annotations = self._getannotation(
- mailfolder,
+ '"%s"' % (mailfolder),
ann_path
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 9:57 AM (4 h, 17 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827538
Default Alt Text
D551.1775296672.diff (1 KB)
Attached To
Mode
D551: Fixing the undelete-mailbox in murder topology to a different root folder
Attached
Detach File
Event Timeline