]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: After logging in, send CAPABILITY and tagged OK in the same IP packet.
authorTimo Sirainen <tss@iki.fi>
Mon, 1 Jun 2009 16:37:58 +0000 (12:37 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 1 Jun 2009 16:37:58 +0000 (12:37 -0400)
--HG--
branch : HEAD

src/imap/main.c

index 4edbabebcdfe060cd334b2e6f8d38e9a2895a491..07accd76f2b08cd187eba6c786f9e6c24a42800f 100644 (file)
@@ -108,9 +108,11 @@ static void client_add_input(struct client *client, const char *input)
        } else if (send_untagged_capability) {
                /* client doesn't seem to understand tagged capabilities. send
                   untagged instead and hope that it works. */
+               o_stream_cork(client->output);
                client_send_line(client, t_strconcat("* CAPABILITY ",
                        str_c(client->capability_string), NULL));
                client_send_line(client, t_strconcat(tag, " Logged in", NULL));
+               o_stream_uncork(client->output);
        } else {
                client_send_line(client, t_strconcat(
                        tag, " OK [CAPABILITY ",