aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-16 15:38:37 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-16 15:38:37 +0000
commita0666c938f541c79584638fa3ca43d5250d95e29 (patch)
tree8063e45a7b847dae4cf3e1445d66b32c11eee53a /imap.c
parentc5f404bd28d49cc3f5f2545b01387c3de0cb41a9 (diff)
downloadfetchmail-a0666c938f541c79584638fa3ca43d5250d95e29.tar.gz
fetchmail-a0666c938f541c79584638fa3ca43d5250d95e29.tar.bz2
fetchmail-a0666c938f541c79584638fa3ca43d5250d95e29.zip
Fix bug in number-scanning.
svn path=/trunk/; revision=1347
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/imap.c b/imap.c
index 0668ff36..53d9a11c 100644
--- a/imap.c
+++ b/imap.c
@@ -63,10 +63,8 @@ int imap_ok (int sock, char *argbuf)
*/
unseen = 0;
for (cp = buf; *cp && !isdigit(*cp); cp++)
- {
- unseen = atoi(cp);
- break;
- }
+ continue;
+ unseen = atoi(cp);
}
if (strstr(buf, "FLAGS"))
seen = (strstr(buf, "Seen") != (char *)NULL);