changeset 9401:5053bfd20001 HEAD

imap proxy: Don't log "unexpected input" errors about tagged CAPABILITY replies.
author Timo Sirainen <tss@iki.fi>
date Wed, 30 Sep 2009 12:27:28 -0400
parents 1fb19e1c84f5
children 92d7f08e9105
files src/imap-login/imap-proxy.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap-login/imap-proxy.c	Wed Sep 30 11:08:18 2009 -0400
+++ b/src/imap-login/imap-proxy.c	Wed Sep 30 12:27:28 2009 -0400
@@ -352,6 +352,9 @@
 		i_free(client->proxy_backend_capability);
 		client->proxy_backend_capability = i_strdup(line + 13);
 		return 0;
+	} else if (strncmp(line, "C ", 2) == 0) {
+		/* Reply to CAPABILITY command we sent, ignore it */
+		return 0;
 	} else if (strncasecmp(line, "I ", 2) == 0 ||
 		   strncasecmp(line, "* ID ", 5) == 0) {
 		/* Reply to ID command we sent, ignore it */