]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: APPEND - Fix parameters for cmd_args and cmd_human_args
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 7 Nov 2019 12:29:07 +0000 (14:29 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 13 Nov 2019 08:31:27 +0000 (10:31 +0200)
Note that this still includes only the first parameters when CATENATE or
MULTIAPPEND is used.

src/imap/cmd-append.c

index f04d49946bcb7b2fbf7855f42a4313ea271bebb9..920fe187e1485cf7ee553527f063b217db653c10 100644 (file)
@@ -44,6 +44,7 @@ struct cmd_append_context {
        bool message_input:1;
        bool binary_input:1;
        bool catenate:1;
+       bool cmd_args_set:1;
        bool failed:1;
 };
 
@@ -481,6 +482,11 @@ cmd_append_handle_args(struct client_command_context *cmd,
        int ret, timezone_offset;
        bool valid;
 
+       if (!ctx->cmd_args_set) {
+               ctx->cmd_args_set = TRUE;
+               client_args_finished(cmd, args);
+       }
+
        /* [<flags>] */
        if (!imap_arg_get_list(args, &flags_list))
                flags_list = NULL;