summaryrefslogtreecommitdiff
path: root/imap/src/c-client
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-01-14 12:46:13 -0700
committerEduardo Chappa <chappa@washington.edu>2018-01-14 12:46:13 -0700
commit3addcb6e705b320dcaf8c6d974039719e40daa24 (patch)
tree01db95413253baec02829a1db641f4fe9707c82d /imap/src/c-client
parentf2246f7d298b96a231dcde60cf62711ca22838ed (diff)
downloadalpine-3addcb6e705b320dcaf8c6d974039719e40daa24.tar.xz
* 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.
Diffstat (limited to 'imap/src/c-client')
-rw-r--r--imap/src/c-client/imap4r1.c2
1 files changed, 1 insertions, 1 deletions
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 =