From ecc0cfafe858ef22659b53971f9f6465ddd55699 Mon Sep 17 00:00:00 2001 From: CozC Date: Sun, 3 Nov 2019 09:57:53 +0200 Subject: [PATCH] According to RFC7162 section 3.1.3.0 MODIFIED keyword should be used as respnse like "... OK [MODIFIED 7,9] ..." not "...OK [MODIFIED [7,9]]..." --- src/imapcommands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/imapcommands.c b/src/imapcommands.c index 16a6e184c..d93d86e0c 100644 --- a/src/imapcommands.c +++ b/src/imapcommands.c @@ -2405,7 +2405,9 @@ static void _ic_store_enter(dm_thread_data *D) if (self->ids_list) { GString *failed_ids = g_list_join_u64(self->ids_list, ","); buffer = p_string_new(self->pool, ""); - p_string_printf(buffer, "MODIFIED [%s]", failed_ids->str); + //according to RFC7162 section 3.1.3.0 MODIFIED keyword should be used as respnse like + //"... OK [MODIFIED 7,9] ..." not "...OK [MODIFIED [7,9]]..." + p_string_printf(buffer, "MODIFIED %s", failed_ids->str); g_string_free(failed_ids, TRUE); g_list_free(g_list_first(self->ids_list)); self->ids_list = NULL;