imap: After logging in, send CAPABILITY and tagged OK in the same IP packet. HEAD
authorTimo Sirainen <tss@iki.fi>
Mon Jun 01 12:37:58 2009 -0400 (2009-06-01)
branchHEAD
changeset 94268ecbc7fefeb2
parent 9425 810e36796e3d
child 9427 befc876577e4
imap: After logging in, send CAPABILITY and tagged OK in the same IP packet.
src/imap/main.c
     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 ",