dovecot-1.2: imap proxy: Pass through to client unexpected untag...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 15 07:01:50 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/b745911012bb
changeset: 9126:b745911012bb
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 15 00:01:39 2009 -0400
description:
imap proxy: Pass through to client unexpected untagged replies from remote server.
diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
src/imap-login/imap-proxy.c | 9 ++++++++-
diffs (20 lines):
diff -r 6c0fb914e03e -r b745911012bb src/imap-login/imap-proxy.c
--- 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 @@ 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 */
+ } 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