Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9126:b745911012bb HEAD
imap proxy: Pass through to client unexpected untagged replies from remote server.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 15 Jun 2009 00:01:39 -0400 |
parents | 6c0fb914e03e |
children | 01fae3737994 |
files | src/imap-login/imap-proxy.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap-login/imap-proxy.c Thu Jun 11 18:04:43 2009 -0400 +++ b/src/imap-login/imap-proxy.c Mon Jun 15 00:01:39 2009 -0400 @@ -341,8 +341,15 @@ i_free(client->proxy_backend_capability); client->proxy_backend_capability = i_strdup(line + 13); return 0; + } else if (strncasecmp(line, "I ", 2) == 0 || + strncasecmp(line, "* ID ", 5) == 0) { + /* Reply to ID command we sent, ignore it */ + } else if (strncmp(line, "* ", 2) == 0) { + /* untagged reply. just foward it. */ + client_send_line(client, line); + return 0; } else { - /* probably some untagged reply */ + /* tagged reply, shouldn't happen. */ return 0; } }