]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Fixed CATENATE support to send "+ OK" for literals.
authorTimo Sirainen <tss@iki.fi>
Wed, 20 Jun 2012 02:39:50 +0000 (05:39 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 20 Jun 2012 02:39:50 +0000 (05:39 +0300)
src/imap/cmd-append.c

index 93a4f9f092d133be81443cf608a449da25a59483..b1e70ed6215c9323a65bf132ef1ba62ed4fdab4e 100644 (file)
@@ -686,16 +686,16 @@ static bool cmd_append_continue_parsing(struct client_command_context *cmd)
                /* after literal comes CRLF, if we fail make sure
                   we eat it away */
                client->input_skip_line = TRUE;
-
-               if (!nonsync) {
-                       o_stream_send(client->output, "+ OK\r\n", 6);
-                       o_stream_flush(client->output);
-                       o_stream_uncork(client->output);
-                       o_stream_cork(client->output);
-               }
                ctx->message_input = TRUE;
        }
 
+       if (!nonsync) {
+               o_stream_send(client->output, "+ OK\r\n", 6);
+               o_stream_flush(client->output);
+               o_stream_uncork(client->output);
+               o_stream_cork(client->output);
+       }
+
        cmd->func = cmd_append_continue_message;
        return cmd_append_continue_message(cmd);
 }