Skip to content

Commit

Permalink
Merge pull request #2 from CozC/RFC7162-MODIFIED
Browse files Browse the repository at this point in the history
According to RFC7162 section 3.1.3.0 MODIFIED keyword should be used
  • Loading branch information
CozC committed Nov 28, 2019
2 parents 6a19af6 + ecc0cfa commit ffe764f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/imapcommands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ffe764f

Please sign in to comment.