summaryrefslogtreecommitdiff
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
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.
-rw-r--r--imap/src/c-client/imap4r1.c2
-rw-r--r--pith/pine.hlp2
2 files changed, 2 insertions, 2 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 =
diff --git a/pith/pine.hlp b/pith/pine.hlp
index 2bb809a9..dee1dfd9 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any
reasonable place to be called from.
Dummy change to get revision in pine.hlp
============= h_revision =================
-Alpine Commit 243 2018-01-09 12:05:19
+Alpine Commit 244 2018-01-14 12:46:05
============= h_news =================
<HTML>
<HEAD>