Fixed small bug in the ManageSieve proxy.
1.1 --- a/src/managesieve-login/managesieve-proxy.c Mon Jan 26 19:05:00 2009 +0100
1.2 +++ b/src/managesieve-login/managesieve-proxy.c Sat Jan 31 22:25:16 2009 +0100
1.3 @@ -168,7 +168,7 @@
1.4 return 0;
1.5
1.6 } else {
1.7 - if (strncasecmp(line, "OK ", 3) == 0) {
1.8 + if ( strncasecmp(line, "OK", 2) == 0 && ( strlen(line) == 2 || line[2] == ' ' ) ) {
1.9 /* Login successful. Send this line to client. */
1.10 o_stream_cork(client->output);
1.11 (void)o_stream_send_str(client->output, line);