Projects
Kolab:16:Testing:Candidate
cyrus-imapd-3
0001-Quote-values-when-proxying-SETMETADATA.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Quote-values-when-proxying-SETMETADATA.patch of Package cyrus-imapd-3 (Revision 15)
Currently displaying revision
15
,
Show latest
From aef13b60b3911b29aefc2d657091b8b40bd41fa5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf <mollekopf@apheleia-it.ch> Date: Thu, 18 May 2023 13:53:21 +0200 Subject: [PATCH 1/2] Quote values when proxying SETMETADATA The value event.default was not quoted, which fails to be parsed (I'm not actually sure it needs to be quoted according to rfc). We now simply always quote key and value, which seems to do the trick. --- imap/imap_proxy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imap/imap_proxy.c b/imap/imap_proxy.c index a622d4a74..14de79732 100644 --- a/imap/imap_proxy.c +++ b/imap/imap_proxy.c @@ -1491,9 +1491,13 @@ int annotate_store_proxy(const char *server, const char *mbox_pat, buf_appendcstr(&entrybuf, e->entry); /* Print the entry-value pair */ + prot_putc('"', be->out); prot_printamap(be->out, entrybuf.s, entrybuf.len); + prot_putc('"', be->out); prot_putc(' ', be->out); + prot_putc('"', be->out); prot_printamap(be->out, av->value.s, av->value.len); + prot_putc('"', be->out); if (av->next) prot_putc(' ', be->out); } -- 2.40.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.