From 3addcb6e705b320dcaf8c6d974039719e40daa24 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 14 Jan 2018 12:46:13 -0700 Subject: * Change to imap4r1.c to ignore text after a reply to a STATUS command. The Exchange server adds a white space (US-ASCII 32) at the end of the reply to a STATUS command, making the parser fail, and ignoring the reply of the STATUS command. --- imap/src/c-client/imap4r1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imap/src') diff --git a/imap/src/c-client/imap4r1.c b/imap/src/c-client/imap4r1.c index 139137d9..13aaadab 100644 --- a/imap/src/c-client/imap4r1.c +++ b/imap/src/c-client/imap4r1.c @@ -4072,7 +4072,7 @@ void imap_parse_unsolicited (MAILSTREAM *stream,IMAPPARSEDREPLY *reply) unsigned char *txt = reply->text; if ((t = imap_parse_astring (stream,&txt,reply,&j)) && txt && (*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) && - (s - txt) && !s[1]) { + (s - txt)) { *s = '\0'; /* tie off status data */ /* initialize data block */ status.flags = status.messages = status.recent = status.unseen = -- cgit v1.2.3-70-g09d2