# HG changeset patch # User Timo Sirainen # Date 1254350210 14400 # Node ID 8e8a706d69053001da9085a7b1492e030c5f49fc # Parent cf291558ce28aa17590afad397e297b9230b4cae imap proxy: Don't fail if LOGIN parameters were sent using literals. diff -r cf291558ce28 -r 8e8a706d6905 src/imap-login/imap-proxy.c --- a/src/imap-login/imap-proxy.c Wed Sep 30 17:07:12 2009 -0400 +++ b/src/imap-login/imap-proxy.c Wed Sep 30 18:36:50 2009 -0400 @@ -221,14 +221,11 @@ } return 0; } else if (*line == '+') { + if (!client->proxy_wait_auth_continue) { + /* used literals with LOGIN command, just ignore. */ + return 0; + } /* AUTHENTICATE started. finish it. */ - if (!client->proxy_wait_auth_continue) { - client_syslog_err(&client->common, t_strdup_printf( - "proxy: Unexpected input: %s", - str_sanitize(line, 160))); - proxy_failed(client, TRUE); - return -1; - } client->proxy_wait_auth_continue = FALSE; str = t_str_new(128);