imap: After logging in, send CAPABILITY and tagged OK in the same IP packet.
1.1 --- a/src/imap/main.c Mon Jun 01 01:11:17 2009 -0400
1.2 +++ b/src/imap/main.c Mon Jun 01 12:37:58 2009 -0400
1.3 @@ -108,9 +108,11 @@
1.4 } else if (send_untagged_capability) {
1.5 /* client doesn't seem to understand tagged capabilities. send
1.6 untagged instead and hope that it works. */
1.7 + o_stream_cork(client->output);
1.8 client_send_line(client, t_strconcat("* CAPABILITY ",
1.9 str_c(client->capability_string), NULL));
1.10 client_send_line(client, t_strconcat(tag, " Logged in", NULL));
1.11 + o_stream_uncork(client->output);
1.12 } else {
1.13 client_send_line(client, t_strconcat(
1.14 tag, " OK [CAPABILITY ",