dovecot-2.0: imap proxy: Pass through to client unexpected untag...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 16 03:09:40 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/57a2431852f5
changeset: 9473:57a2431852f5
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 15 19:40:08 2009 -0400
description:
imap proxy: Pass through to client unexpected untagged replies from remote server.
diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
src/imap-login/imap-proxy.c | 10 +++++++++-
diffs (21 lines):
diff -r 18caae3804e3 -r 57a2431852f5 src/imap-login/imap-proxy.c
--- a/src/imap-login/imap-proxy.c Mon Jun 15 17:37:34 2009 -0400
+++ b/src/imap-login/imap-proxy.c Mon Jun 15 19:40:08 2009 -0400
@@ -292,8 +292,16 @@ static int proxy_input_line(struct imap_
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;
}
}
More information about the dovecot-cvs
mailing list