File 0001-Always-quote-SETMETADATA-values.patch of Package cyrus-imapd-3
From 2d3fd722e89d579cbbd1fe1006e7b8a7d19891a4 Mon Sep 17 00:00:00 2001
From: Christian Mollekopf <mollekopf@apheleia-it.ch>
Date: Fri, 19 May 2023 10:58:27 +0200
Subject: [PATCH] Always quote SETMETADATA values
the value can be NUL, a quoted string or a literal, but NOT an atom.
Per RFC and parsing implementation.
---
imap/imap_proxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/imap/imap_proxy.c b/imap/imap_proxy.c
index dd7c608b2..7d6dc4335 100644
--- a/imap/imap_proxy.c
+++ b/imap/imap_proxy.c
@@ -1497,7 +1497,7 @@ int annotate_store_proxy(const char *server, const char *mbox_pat,
/* Print the entry-value pair */
prot_printamap(be->out, entrybuf.s, entrybuf.len);
prot_putc(' ', be->out);
- prot_printamap(be->out, av->value.s, av->value.len);
+ prot_printmap(be->out, av->value.s, av->value.len);
if (av->next) prot_putc(' ', be->out);
}
--
2.40.0