Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117805641
D211.1775273086.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
D211.1775273086.diff
View Options
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -408,8 +408,6 @@
if metadata_path.startswith('/shared/'):
shared = True
-
- if metadata_path.startswith('/shared/'):
metadata_path = metadata_path.replace('/shared/', '/')
elif metadata_path.startswith('/private/'):
shared = False
diff --git a/pykolab/imap/dovecot.py b/pykolab/imap/dovecot.py
--- a/pykolab/imap/dovecot.py
+++ b/pykolab/imap/dovecot.py
@@ -78,20 +78,22 @@
entries = " /private%s" % pattern
typ, dat = self._simple_command('GETMETADATA', options, mailbox, entries)
+
return self._untagged_response(typ, dat, 'METADATA')
def imap_setmetadata(self, mailbox, desc, value, shared=False):
if value:
- value = quote(value)
+ value = value.join(['"', '"'])
else:
value = "NIL"
if shared:
typ, dat = self._simple_command('SETMETADATA', mailbox,
- "(/shared/%s %s)" % (desc,value))
+ "(/shared%s %s)" % (desc,value))
else:
typ, dat = self._simple_command('SETMETADATA', mailbox,
- "(/private/%s %s)" % (desc,value))
+ "(/private%s %s)" % (desc,value))
+
return self._untagged_response(typ, dat, 'METADATA')
# Bind the new methods to the cyruslib IMAP4 and IMAP4_SSL objects
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 3:24 AM (1 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827896
Default Alt Text
D211.1775273086.diff (1 KB)
Attached To
Mode
D211: T1375: Fix setting metadata on dovecot
Attached
Detach File
Event Timeline