Page MenuHomekolab.org

fix-two-minor-dovecot-issues
ActivePublic

Authored by detrout on Jul 22 2016, 12:36 AM.
--- /tmp/dovecot.py 2016-07-21 15:30:46.572617096 -0700
+++ dovecot.py 2016-04-20 11:20:50.958601661 -0700
@@ -81,18 +81,18 @@
return self._untagged_response(typ, dat, 'METADATA')
def imap_setmetadata(self, mailbox, desc, value, shared=False):
if value:
- value = '"' + str(value).strip('"') + '"'
+ value = quote(value)
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

Event Timeline

detrout created this paste.Jul 22 2016, 12:36 AM