From 121ce76e46b6325b9475c3bc5a3b7b5028b40d39 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 5 Dec 2010 16:49:11 +0100 Subject: [PATCH] make response code parse failure of untagged OK/NO/BYE/BAD non-fatal as such, it does not disrupt the data stream --- src/drv_imap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index 44792bc..138c9a6 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1018,8 +1018,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd ) ctx->ns_shared = parse_list( &cmd ); } else if (!strcmp( "OK", arg ) || !strcmp( "BAD", arg ) || !strcmp( "NO", arg ) || !strcmp( "BYE", arg )) { - if ((resp = parse_response_code( ctx, 0, cmd )) != RESP_OK) - return resp; + parse_response_code( ctx, 0, cmd ); } else if (!strcmp( "CAPABILITY", arg )) parse_capability( ctx, cmd ); else if (!strcmp( "LIST", arg ))