]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap proxy: Pass through to client unexpected untagged replies from remote server.
authorTimo Sirainen <tss@iki.fi>
Mon, 15 Jun 2009 23:40:08 +0000 (19:40 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 15 Jun 2009 23:40:08 +0000 (19:40 -0400)
--HG--
branch : HEAD

src/imap-login/imap-proxy.c

index 79095f731221e639fb22485fa06633e8acbddae9..3d6c9fb7d6e5d62b65a0521c195eef4b3da79f00 100644 (file)
@@ -292,8 +292,16 @@ static int proxy_input_line(struct imap_client *client, const char *line)
                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 */
+               return 0;
+       } 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;
        }
 }